Trait askama::Template[][src]

pub trait Template {
    fn render_into(&self, writer: &mut Write) -> Result<()>;
fn extension(&self) -> Option<&str>; fn render(&self) -> Result<String> { ... } }

Main Template trait; implementations are generally derived

Required Methods

Renders the template to the given writer buffer

Helper method to inspect the template's extension

Provided Methods

Helper method which allocates a new String and renders into it

Implementors