Module jinja_env

Source
Expand description

The submodule responsible for creating the [minijinja::Environment] and loading of templates.

Constantsยง

BASE_TEMPLATE_NAME
CUL_TEMPLATE_NAME
C_TEMPLATE_NAME
DERIVED_REF_ID_ATTR ๐Ÿ”’
DERIVED_REF_NAME_ATTR ๐Ÿ”’
DERIVED_REF_SUBDIR_ATTR ๐Ÿ”’
DYN_TEMPLATE_NAME
FAITH_TEMPLATE_NAME
HOUSE_TEMPLATE_NAME
H_TEMPLATE_NAME
LOCALIZATION_FUNC_NAME ๐Ÿ”’
LOCALIZATION_GLOBAL ๐Ÿ”’
REF_TEMPLATE_NAME
TEMPLATE_NAMES ๐Ÿ”’
TIMELINE_TEMPLATE_NAME
TITLE_TEMPLATE_NAME

Functionsยง

create_env
Environment creation
localize ๐Ÿ”’
render_ref ๐Ÿ”’
A function that renders a reference. May be used in the templates as filter(using [Environment::add_filter]) or function(using [Environment::add_function]) to render a reference to another object. If the reference is shallow, it will render just the name, otherwise render it as a link. The function must be rendered without html escape. Calling this on an undefined reference will fail.