environment
Tools and classes for managing the Jinja2 rendering environment.
Classes¶
InheritanceLoader
¶
InheritanceLoader(inheritance_map: InheritanceMap)
SuperUndefined
¶
Functions¶
load_environment
¶
load_environment(
template_map: Optional[InheritanceMap] = None,
extensions: Optional[list] = None,
) -> Environment
Load the Jinja2 template environment.
PARAMETER | DESCRIPTION |
---|---|
template_map
|
The template inheritance used to load the templates
TYPE:
|
extensions
|
A list of Jinja extensions to load into the environment |
RETURNS | DESCRIPTION |
---|---|
Environment
|
The Jinja environment |