Skip to main content

Crate tera

Crate tera 

Source

Re-exports§

pub use value::Map;
pub use value::Value;

Modules§

value

Macros§

context
Creates a context from key value pairs

Structs§

ComponentArg
Information about a single component argument.
ComponentInfo
Information about a component definition.
Context
The struct that holds the context of a template rendering.
Delimiters
This allows customizing the delimiters used for blocks, variables, and comments in case you want to template files that contains text like {{, like LaTeX. Delimiters need to be 2 ASCII characters.
Error
Kwargs
Parser
State
The state of the interpreter. We pass it around rather than put it on the VM to avoid multiple borrow issues when dealing with inheritance.
Tera

Enums§

ComponentArgType
The type of component arguments.
ErrorKind
Number
Simpler representation of numbers so operations are simpler to handle Also can be used for custom filters/tests/fn when you want to ensure you get a number

Traits§

Filter
The filter function type definition
Function
The function function type definition
Test
The test function type definition

Functions§

escape_html
Escape HTML following OWASP

Type Aliases§

EscapeFn
The escape function type definition
TeraResult