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<String, Template>) -> 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