Struct stache::Template [] [src]

pub struct Template {
    pub tree: Statement,
    pub path: PathBuf,
    pub name: String,
    // some fields omitted
}

Fields

Methods

impl Template
[src]

Creates a template from file name and root AST node.

The file name is used as an identifier in compiled function names to ensure uniqueness when linked with other templates. It provides a stable name to be referenced as a partial in other templates.

Trait Implementations

impl Debug for Template
[src]

Formats the value using the given formatter.