jinja library

Classes

Environment
The core component of Jinja 2 is the Environment.
Loader
Base abstract class for all loaders.
MapLoader
Loads a template from a map.
Template
The base Template class.

Functions

passContext(Function function) Function
Pass the Context as the first argument to the applied function when called while rendering a template.
passEnvironment(Function function) Function
Pass the Environment as the first argument to the applied function when called while rendering a template.

Typedefs

AttributeGetter = Object? Function(String attribute, Object? object)
A Function that can be used to get object atribute.
ContextFinalizer = Object Function(Context context, Object? value)
A Function that can be used to process the result of a variable expression before it is output.
EnvironmentFinalizer = Object Function(Environment environment, Object? value)
A Function that can be used to process the result of a variable expression before it is output.
Finalizer = Object Function(Object? value)
A Function that can be used to process the result of a variable expression before it is output.
ItemGetter = Object? Function(Object key, Object? object)
A Function that can be used to get object item.

Exceptions / Errors

FilterArgumentError
This error is raised if a filter was called with inappropriate arguments.
TemplateAssertionError
Like a template syntax error, but covers cases where something in the template caused an error at parsing time that wasn't necessarily caused by a syntax error.
TemplateError
Baseclass for all template errors.
TemplateNotFound
Raised if a template does not exist.
TemplateRuntimeError
A generic runtime error in the template engine.
TemplatesNotFound
Like TemplateNotFound but raised if multiple templates are selected.
TemplateSyntaxError
Raised to tell the user that there is a problem with the template.