Trait askama_gotham::Template
source · pub trait Template: Display {
const EXTENSION: Option<&'static str>;
const SIZE_HINT: usize;
const MIME_TYPE: &'static str;
// Required method
fn render_into(&self, writer: &mut impl Write) -> Result<(), Error>;
// Provided methods
fn render(&self) -> Result<String, Error> { ... }
fn write_into(&self, writer: &mut impl Write) -> Result<(), Error> { ... }
}
Expand description
Main Template
trait; implementations are generally derived
If you need an object-safe template, use DynTemplate
.