Trait stpl::Template [] [src]

pub trait Template {
    type Argument: Serialize + for<'de> Deserialize<'de>;
    fn key(&self) -> &'static str;
fn render<'a>(
        &self,
        argument: &Self::Argument,
        io: &'a mut Write
    ) -> Result<()>; }

A whole template that knows how to render itself

See html::Template for the actual type implementing it and more concrete information.

Associated Types

Required Methods

A unique key used to identify the template

Render itself into an io

Implementors