[][src]Trait askama_gotham::Template

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

Main Template trait; implementations are generally derived

Required methods

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

Renders the template to the given writer buffer

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

Helper function to inspect the template's extension

fn size_hint(&self) -> usize

Provides an conservative estimate of the expanded length of the rendered template

Loading content...

Provided methods

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

Helper method which allocates a new String and renders into it

Loading content...

Implementors

Loading content...