[][src]Trait askama::Template

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

Main Template trait; implementations are generally derived

Required methods

fn render_into(&self, writer: &mut dyn Write) -> Result<()>

Renders the template to the given writer buffer

fn extension(&self) -> Option<&str>

Helper method to inspect the template's extension

Loading content...

Provided methods

fn render(&self) -> Result<String>

Helper method which allocates a new String and renders into it

Loading content...

Implementors

Loading content...