Crate tera [] [src]

Tera

Tera is a template engine based on Jinja2 and the Django template language.

See the README for features and to get started.

Macros

compile_templates

Compile templates or exits process

try_get_value

Helper macro to get real values out of Value while retaining proper errors in filters

Structs

Context

The struct that holds the context of a template rendering.

Error

The Error type.

Tera

The main point of interaction in this library.

Enums

ErrorKind

The kind of an error.

Value

Represents a JSON value

Functions

escape_html

Escape HTML following OWASP

to_value

Shortcut function to encode a T into a JSON Value

Type Definitions

Result

Convenient wrapper around std::Result.