aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-12-15 09:16:20 +0100
committerLibravatar GitHub <noreply@github.com>2020-12-15 09:16:20 +0100
commit5057b75e7752f2186157fb3e1f5e5d2d0c5ff880 (patch)
tree213711d7aa654705188ce4c89f303f3a2df81ac9 /askama_shared/src/generator.rs
parent3b57663b5b626a322e81f9399f0ab39a88411fd4 (diff)
parent11441aa4a1927c186a0eb7e6d519b709f7e40605 (diff)
downloadaskama-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/src/generator.rs')
-rw-r--r--askama_shared/src/generator.rs4
1 files changed, 2 insertions, 2 deletions
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("}")?;