wok diff python-jinja2/description.txt @ rev 25457

Normazile https://sourceforge.net/projects web_sites
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 23 08:28:09 2022 +0000 (20 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python-jinja2/description.txt	Fri Sep 23 08:28:09 2022 +0000
     1.3 @@ -0,0 +1,20 @@
     1.4 +Jinja is a fast, expressive, extensible templating engine.
     1.5 +Special placeholders in the template allow writing code similar to Python syntax.
     1.6 +Then the template is passed data to render the final document.
     1.7 +
     1.8 +It includes:
     1.9 +
    1.10 +- Template inheritance and inclusion.
    1.11 +- Define and import macros within templates.
    1.12 +- HTML templates can use autoescaping to prevent XSS from untrusted user input.
    1.13 +- A sandboxed environment can safely render untrusted templates.
    1.14 +- AsyncIO support for generating templates and calling async functions.
    1.15 +- I18N support with Babel.
    1.16 +- Templates are compiled to optimized Python code just-in-time and cached,
    1.17 +  or can be compiled ahead-of-time.
    1.18 +- Exceptions point to the correct line in templates to make debugging easier.
    1.19 +- Extensible filters, tests, functions, and even syntax.
    1.20 +
    1.21 +Jinja's philosophy is that while application logic belongs in Python if possible,
    1.22 +it shouldn't make the template designer's job difficult by restricting
    1.23 +functionality too much.