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
type Argument: Serialize + for<'de> Deserialize<'de>
Required Methods
fn key(&self) -> &'static str
A unique key used to identify the template
fn render<'a>(&self, argument: &Self::Argument, io: &'a mut Write) -> Result<()>
Render itself into an io