Jinja (Template Engine)

Overview

According to Wikipedia:

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.

It has since been picked up by a lot of different software stacks. Being python-based, it gets used in web frameworks like [Flask][flask-zk]. Even Ansible uses it for templating configuration files, scripts, and other deployment artifacts.

Note: If you're here from looking at the Nunjucks Template Engine, Nunjucks is designed to be a port of Jinja to JavaScript. Most of the syntax, API and filters are the same, however some important differences exist as it is based on JavaScript.

API

TODO needs python-side explanations from documentation

Syntax

TODO needs python-side explanations from documentation

References

Web Links

Note Links