diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-28 22:49:04 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-29 09:25:59 +0100 |
commit | ff24eef1ff7dcf3849fd1e6d9efec0de2bc57005 (patch) | |
tree | db3a606f7cf88b6a932484c799a441cab9dd7996 /askama_derive | |
parent | 75f32d3967e4d13b86b0d720ebc808c6fd9caa05 (diff) | |
download | askama-ff24eef1ff7dcf3849fd1e6d9efec0de2bc57005.tar.gz askama-ff24eef1ff7dcf3849fd1e6d9efec0de2bc57005.tar.bz2 askama-ff24eef1ff7dcf3849fd1e6d9efec0de2bc57005.zip |
Move Iron integration into a separate askama_iron crate
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/generator.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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);"); } _ => (), }; |