From 75f32d3967e4d13b86b0d720ebc808c6fd9caa05 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 28 Jan 2020 22:17:22 +0100 Subject: Move Gotham integration into separate askama_gotham crate --- askama_derive/src/generator.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'askama_derive/src/generator.rs') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 0d77c16..949019b 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -258,16 +258,16 @@ impl<'a> Generator<'a> { // Implement gotham's `IntoResponse`. fn impl_gotham_into_response(&mut self, buf: &mut Buffer) { - self.write_header(buf, "::askama::gotham::IntoResponse", None); + self.write_header(buf, "::askama_gotham::IntoResponse", None); buf.writeln( - "fn into_response(self, _state: &::askama::gotham::State)\ - -> ::askama::gotham::Response<::askama::gotham::Body> {", + "fn into_response(self, _state: &::askama_gotham::State)\ + -> ::askama_gotham::Response<::askama_gotham::Body> {", ); let ext = match self.input.path.extension() { Some(s) => s.to_str().unwrap(), None => "txt", }; - buf.writeln(&format!("::askama::gotham::respond(&self, {:?})", ext)); + buf.writeln(&format!("::askama_gotham::respond(&self, {:?})", ext)); buf.writeln("}"); buf.writeln("}"); } -- cgit