wok-6.x view python-jinja2/description.txt @ rev 25377
updated udpxy (1.0.24.1 -> 1.0.25.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 11:20:37 2022 +0100 (2022-07-30) |
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.