From e29792e90ce438875a13becdeb9c030b1d3132e4 Mon Sep 17 00:00:00 2001 From: Pavel Fokin Date: Thu, 11 Apr 2019 07:48:38 +0300 Subject: WIP: Add raw block --- askama_derive/src/generator.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'askama_derive/src/generator.rs') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 4a6eb89..aa91de0 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -345,6 +345,11 @@ impl<'a> Generator<'a> { self.flush_ws(m.ws1); self.prepare_ws(m.ws2); } + Node::Raw(ws1, contents, ws2) => { + self.handle_ws(ws1); + self.buf_writable.push(Writable::Lit(contents)); + self.handle_ws(ws2); + } Node::Import(ws, _, _) => { if level != AstLevel::Top { panic!("import blocks only allowed at the top level"); -- cgit