Original author(s) | Armin Ronacher |
---|---|
Initial release | July 17, 2008[1] |
Stable release | 3.1.4[2]
/ 5 May 2024 |
Repository | |
Written in | Python |
Type | Template engine |
License | BSD License |
Website | palletsprojects |
Jinja is a web template engine for the Python programming language. It was created by Armin Ronacher and is licensed under a BSD License. Jinja is similar to the Django template engine, but provides Python-like expressions while ensuring that the templates are evaluated in a sandbox. It is a text-based template language and thus can be used to generate any markup as well as source code.
The Jinja template engine allows customization of tags,[3] filters (for formatting or transforming values[4]), tests (for evaluating conditions[4]), and globals.[5] Also, unlike the Django template engine, Jinja allows the template designer to call functions with arguments on objects. Jinja is Flask's default template engine [6] and it is also used by Ansible,[7] Trac, and Salt.[8] It is also used to make SQL macros, for example for use with dbt.[9]