aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
Diffstat (limited to 'askama_shared')
-rw-r--r--askama_shared/Cargo.toml2
-rw-r--r--askama_shared/src/generator.rs4
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("}")?;