Struct mustache::Template
[−]
[src]
pub struct Template { /* fields omitted */ }Template represents a compiled mustache file.
Methods
impl Template[src]
pub fn render<W, T>(&self, wr: &mut W, data: &T) -> Result<()> where
W: Write,
T: Serialize, [src]
W: Write,
T: Serialize,
Renders the template with the Encodable data.
pub fn render_data<W: Write>(&self, wr: &mut W, data: &Data) -> Result<()>[src]
Renders the template with the Data.
pub fn render_to_string<T: Serialize>(&self, data: &T) -> Result<String, Error>[src]
Renders the template to a String with the Encodable data.
pub fn render_data_to_string(&self, data: &Data) -> Result<String, Error>[src]
Renders the template to a String with the Data.
Trait Implementations
impl Debug for Template[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more