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

Use default gcc 6.3 for libgphoto2
author Stanislas Leduc <shann@slitaz.org>
date Sun Sep 03 19:59:46 2023 +0000 (14 months ago)
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.