Jinja2 is a fast template engine for Python. It has full Unicode support, auto-escaping, inheritance, macros, and many other features.
Jinja2 is a fast template engine for Python. It is the default template engine in flask, can be integrated in other frameworks such as django, or can be used without a framework. Features include:
- Compose complex pages by inheriting from or including other templates
- Automatic HTML escaping to prevent cross site scripting
- Write reusable template macros and import them in other templates
- Call functions with positional and keyword arguments
- High performance with just in time compilation to Python bytecode
- Optional ahead of time compilation
- Optional sandboxed execution environment
- Wide range of helpful functions for template designers