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 value if it's the value the filter is ran on), the expected type and the actual variable

Structs

Context
Tera

Enums

TeraError

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.

Type Definitions

TeraResult

Library generic result type.