aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/generator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'askama_shared/src/generator.rs')
-rw-r--r--askama_shared/src/generator.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs
index 8b1fb33..b891d89 100644
--- a/askama_shared/src/generator.rs
+++ b/askama_shared/src/generator.rs
@@ -102,9 +102,6 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
if self.integrations.gotham {
self.impl_gotham_into_response(&mut buf)?;
}
- if self.integrations.iron {
- self.impl_iron_modifier_response(&mut buf)?;
- }
if self.integrations.mendes {
self.impl_mendes_responder(&mut buf)?;
}
@@ -237,29 +234,6 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
buf.writeln("}")
}
- // Implement iron's Modifier<Response> if enabled
- fn impl_iron_modifier_response(&mut self, buf: &mut Buffer) -> Result<(), CompileError> {
- self.write_header(
- buf,
- "::askama_iron::Modifier<::askama_iron::Response>",
- None,
- )?;
- buf.writeln("fn modify(self, res: &mut ::askama_iron::Response) {")?;
- buf.writeln(
- "res.body = Some(Box::new(::askama_iron::Template::render(&self).unwrap().into_bytes()));",
- )?;
-
- match self.input.extension().unwrap_or("") {
- "html" | "htm" => {
- buf.writeln("::askama_iron::ContentType::html().0.modify(res);")?;
- }
- _ => (),
- };
-
- buf.writeln("}")?;
- buf.writeln("}")
- }
-
// Implement mendes' `Responder`.
fn impl_mendes_responder(&mut self, buf: &mut Buffer) -> Result<(), CompileError> {
let param = syn::parse_str("A: ::mendes::Application").unwrap();