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