Struct tera::Template [] [src]

pub struct Template {
    pub name: String,
    pub ast: Node,
    pub blocks: HashMap<String, Node>,
    // some fields omitted
}

Fields

name: String ast: Node blocks: HashMap<String, Node>

Methods

impl Template
[src]

fn new(name: &str, input: &str) -> Template

fn render(&self, context: Context, templates: HashMap<StringTemplate>) -> TeraResult<String>

Trait Implementations

impl Clone for Template
[src]

fn clone(&self) -> Template

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Template
[src]

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

Formats the value using the given formatter.