fn impl_modifier_response(&mut self, buf: &mut Buffer) {
        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(self.render().unwrap().into_bytes()));");

        let ext = self
            .input
            .path
            .extension()
            .map_or("", |s| s.to_str().unwrap_or(""));
        match ext {
            "html" | "htm" => {
                buf.writeln("::askama::iron::ContentType::html().0.modify(res);");
            }
            _ => (),
        };

        buf.writeln("}");
        buf.writeln("}");
    }
// Implement iron's Modifier<Response> if enabled
Implement iron's Modifier if enabled
Implement iron ' s Modifier if enabled
fn impl_modifier_response(&mut self, buf: &mut Buffer) {
        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(self.render().unwrap().into_bytes()));");
        let ext = self
            .input
            .path
            .extension()
            .map_or("", |s| s.to_str().unwrap_or(""));
        match ext {
            "html" | "htm" => {
                buf.writeln("::askama::iron::ContentType::html().0.modify(res);");
            }
            _ => (),
        };
        buf.writeln("}");
        buf.writeln("}");
    }
fn impl_modifier_response ( & mut self , buf : & mut Buffer ) { self . write_header ( buf , " " , None , ) ; buf . writeln ( " " ) ; buf . writeln ( " " ) ; let ext = self . input . path . extension ( ) . map_or ( " " , | s | s . to_str ( ) . unwrap_or ( " " ) ) ; match ext { " " | " " => { buf . writeln ( " " ) ; } _ => ( ) , } ; buf . writeln ( " " ) ; buf . writeln ( " " ) ; }
Implement iron's Modifier<Response> if enabled
Implement iron ' s Modifier<Response > if enabled
&mut self
buf
&mut Buffer
&mut self
buf
&mut Buffer