pub struct Tera {
pub templates: HashMap<String, Template>,
pub filters: HashMap<String, fn(Value, HashMap<String, Value>) -> TeraResult<Value>>,
pub testers: HashMap<String, fn(context: &Map<String, Value>, value: &Node, params: LinkedList<Value>) -> TeraResult<bool>>,
}
Fields
templates: HashMap<String, Template>
filters: HashMap<String, fn(Value, HashMap<String, Value>) -> TeraResult<Value>>
testers: HashMap<String, fn(context: &Map<String, Value>, value: &Node, params: LinkedList<Value>) -> TeraResult<bool>>
Methods
Trait Implementations
Returns the "default value" for a type. Read more
Formats the value using the given formatter.