wok-current view python-jinja2/description.txt @ rev 25199

updated python-jinja2 (2.11.1 -> 2.11.3)
author Hans-G?nter Theisgen
date Wed Jul 13 13:51:46 2022 +0100 (2022-07-13)
parents
children
line source
1 Jinja is a fast, expressive, extensible templating engine.
2 Special placeholders in the template allow writing code similar to Python syntax.
3 Then the template is passed data to render the final document.
5 It includes:
7 - Template inheritance and inclusion.
8 - Define and import macros within templates.
9 - HTML templates can use autoescaping to prevent XSS from untrusted user input.
10 - A sandboxed environment can safely render untrusted templates.
11 - AsyncIO support for generating templates and calling async functions.
12 - I18N support with Babel.
13 - Templates are compiled to optimized Python code just-in-time and cached,
14 or can be compiled ahead-of-time.
15 - Exceptions point to the correct line in templates to make debugging easier.
16 - Extensible filters, tests, functions, and even syntax.
18 Jinja's philosophy is that while application logic belongs in Python if possible,
19 it shouldn't make the template designer's job difficult by restricting
20 functionality too much.