diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-12-15 09:16:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 09:16:20 +0100 |
commit | 5057b75e7752f2186157fb3e1f5e5d2d0c5ff880 (patch) | |
tree | 213711d7aa654705188ce4c89f303f3a2df81ac9 /askama_shared | |
parent | 3b57663b5b626a322e81f9399f0ab39a88411fd4 (diff) | |
parent | 11441aa4a1927c186a0eb7e6d519b709f7e40605 (diff) | |
download | askama-5057b75e7752f2186157fb3e1f5e5d2d0c5ff880.tar.gz askama-5057b75e7752f2186157fb3e1f5e5d2d0c5ff880.tar.bz2 askama-5057b75e7752f2186157fb3e1f5e5d2d0c5ff880.zip |
Merge pull request #400 from djc/local
Sync local repo with GitHub
Diffstat (limited to 'askama_shared')
-rw-r--r-- | askama_shared/Cargo.toml | 2 | ||||
-rw-r--r-- | askama_shared/src/generator.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/askama_shared/Cargo.toml b/askama_shared/Cargo.toml index 19946e7..fdc5a4c 100644 --- a/askama_shared/Cargo.toml +++ b/askama_shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "askama_shared" -version = "0.10.5" +version = "0.11.1" authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"] description = "Shared code for Askama" homepage = "https://github.com/djc/askama" diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 320e55e..146f9db 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -308,12 +308,12 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { )?; buf.writeln( - "fn into_response(self, app: &A) \ + "fn into_response(self, app: &A, req: &::mendes::http::request::Parts) \ -> ::mendes::http::Response<A::ResponseBody> {", )?; buf.writeln(&format!( - "::mendes::askama::into_response(app, &self, {:?})", + "::mendes::askama::into_response(app, req, &self, {:?})", self.input.path.extension() ))?; buf.writeln("}")?; |