From ff24eef1ff7dcf3849fd1e6d9efec0de2bc57005 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 28 Jan 2020 22:49:04 +0100 Subject: Move Iron integration into a separate askama_iron crate --- askama_derive/src/generator.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'askama_derive/src') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 949019b..9532057 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -191,12 +191,12 @@ impl<'a> Generator<'a> { fn impl_modifier_response(&mut self, buf: &mut Buffer) { self.write_header( buf, - "::askama::iron::Modifier<::askama::iron::Response>", + "::askama_iron::Modifier<::askama_iron::Response>", None, ); - buf.writeln("fn modify(self, res: &mut ::askama::iron::Response) {"); + buf.writeln("fn modify(self, res: &mut ::askama_iron::Response) {"); buf.writeln( - "res.body = Some(Box::new(::askama::Template::render(&self).unwrap().into_bytes()));", + "res.body = Some(Box::new(::askama_iron::Template::render(&self).unwrap().into_bytes()));", ); let ext = self @@ -206,7 +206,7 @@ impl<'a> Generator<'a> { .map_or("", |s| s.to_str().unwrap_or("")); match ext { "html" | "htm" => { - buf.writeln("::askama::iron::ContentType::html().0.modify(res);"); + buf.writeln("::askama_iron::ContentType::html().0.modify(res);"); } _ => (), }; -- cgit