package documentation
Jinja is a template engine written in pure Python. It provides a non-XML syntax that supports inline expressions and an optional sandboxed environment.
Module | async |
Undocumented |
Module | bccache |
The optional bytecode cache system. This is useful if you have very complex template situations and the compilation of all those templates slows down your application too much. |
Module | compiler |
Compiles nodes from the parser into Python code. |
Module | constants |
Undocumented |
Module | debug |
No module docstring; 3/3 functions documented |
Module | defaults |
Undocumented |
Module | environment |
Classes for managing templates and their runtime and compile time options. |
Module | exceptions |
No module docstring; 9/9 classes documented |
Module | ext |
Extension API for adding custom tags and behavior. |
Module | filters |
Built-in template filters used with the ``|`` operator. |
Module | idtracking |
No module docstring; 0/4 constant, 0/2 function, 1/3 class documented |
Module | lexer |
Implements a Jinja / Python combination lexer. The ``Lexer`` class is used to do some preprocessing. It filters out invalid operators like the bitshift operators we don't allow in templates. It separates template code and python code in expressions. |
Module | loaders |
API and implementations for loading templates from different data sources. |
Module | meta |
Functions that expose information about templates that might be interesting for introspection. |
Module | nativetypes |
No module docstring; 1/1 function, 2/3 classes documented |
Module | nodes |
AST nodes generated by the parser for the compiler. Also provides some node tree helper functions used by the parser and compiler in order to normalize nodes. |
Module | optimizer |
The optimizer tries to constant fold expressions and modify the AST in place so that it should be faster to evaluate. |
Module | parser |
Parse tokens from the lexer into nodes for the compiler. |
Module | runtime |
The runtime functions and state used by compiled templates. |
Module | sandbox |
A sandbox layer that ensures unsafe operations cannot be performed. Useful when the template itself comes from an untrusted source. |
Module | tests |
Built-in template tests used with the ``is`` operator. |
Module | utils |
No module docstring; 0/5 variable, 0/1 constant, 16/16 functions, 4/5 classes documented |
Module | visitor |
API for traversing the AST nodes. Implemented by the compiler and meta introspection. |
Module | _identifier |
Undocumented |
From __init__.py
:
Variable | __version__ |
Undocumented |