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
fn render_into(&self, writer: &mut Write) -> Result<()>
Renders the template to the given writer buffer
fn extension(&self) -> Option<&str>
Helper method to inspect the template's extension