Struct tera::Template [] [src]

pub struct Template {
    pub name: String,
    pub ast: Node,
    pub parent: Option<String>,
    pub blocks: HashMap<String, Node>,
}

Fields

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

Methods

impl Template
[src]

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

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.