Crate tera [−] [src]
Macros
try_get_value |
Helper macro to get real values out of Value while retaining
proper errors
Takes 4 args: filter name, variable name (use |
Structs
Context | |
Tera |
Enums
TeraError | |
Value |
Represents a JSON value |
Functions
escape_html |
Contains helper functions From OWASP Escape the following characters with HTML entity encoding to prevent switching into any execution context, such as script, style, or event handlers. Using hex entities is recommended in the spec. In addition to the 5 characters significant in XML (&, <, >, ", '), the forward slash is included as it helps to end an HTML entity. |
to_value |
Shortcut function to encode a |
Type Definitions
TeraResult |
Library generic result type. |