Struct tera::Tera [] [src]

pub struct Tera {
    pub templates: HashMap<StringTemplate>,
}

Fields

templates: HashMap<StringTemplate>

Methods

impl Tera
[src]

fn new(dir: &str) -> Tera

fn render(&self, template_name: &str, data: Context) -> TeraResult<String>

fn get_template(&self, template_name: &str) -> Option<&Template>

Trait Implementations

impl Debug for Tera
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.