Struct mustache::Template
[−]
[src]
pub struct Template {
// some fields omitted
}Template represents a compiled mustache file.
Methods
impl Template
fn render<'a, W: Write, T: Encodable>(&self, wr: &mut W, data: &T) -> Result<(), Error>
Renders the template with the Encodable data.
fn render_data<'a, W: Write>(&self, wr: &mut W, data: &Data)
Renders the template with the Data.