]> jfr.im git - dlqueue.git/blame - venv/lib/python3.11/site-packages/Jinja2-3.1.2.dist-info/METADATA
init: venv aand flask
[dlqueue.git] / venv / lib / python3.11 / site-packages / Jinja2-3.1.2.dist-info / METADATA
CommitLineData
e0df8241
JR
1Metadata-Version: 2.1
2Name: Jinja2
3Version: 3.1.2
4Summary: A very fast and expressive template engine.
5Home-page: https://palletsprojects.com/p/jinja/
6Author: Armin Ronacher
7Author-email: armin.ronacher@active-4.com
8Maintainer: Pallets
9Maintainer-email: contact@palletsprojects.com
10License: BSD-3-Clause
11Project-URL: Donate, https://palletsprojects.com/donate
12Project-URL: Documentation, https://jinja.palletsprojects.com/
13Project-URL: Changes, https://jinja.palletsprojects.com/changes/
14Project-URL: Source Code, https://github.com/pallets/jinja/
15Project-URL: Issue Tracker, https://github.com/pallets/jinja/issues/
16Project-URL: Twitter, https://twitter.com/PalletsTeam
17Project-URL: Chat, https://discord.gg/pallets
18Platform: UNKNOWN
19Classifier: Development Status :: 5 - Production/Stable
20Classifier: Environment :: Web Environment
21Classifier: Intended Audience :: Developers
22Classifier: License :: OSI Approved :: BSD License
23Classifier: Operating System :: OS Independent
24Classifier: Programming Language :: Python
25Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
26Classifier: Topic :: Text Processing :: Markup :: HTML
27Requires-Python: >=3.7
28Description-Content-Type: text/x-rst
29License-File: LICENSE.rst
30Requires-Dist: MarkupSafe (>=2.0)
31Provides-Extra: i18n
32Requires-Dist: Babel (>=2.7) ; extra == 'i18n'
33
34Jinja
35=====
36
37Jinja is a fast, expressive, extensible templating engine. Special
38placeholders in the template allow writing code similar to Python
39syntax. Then the template is passed data to render the final document.
40
41It includes:
42
43- Template inheritance and inclusion.
44- Define and import macros within templates.
45- HTML templates can use autoescaping to prevent XSS from untrusted
46 user input.
47- A sandboxed environment can safely render untrusted templates.
48- AsyncIO support for generating templates and calling async
49 functions.
50- I18N support with Babel.
51- Templates are compiled to optimized Python code just-in-time and
52 cached, or can be compiled ahead-of-time.
53- Exceptions point to the correct line in templates to make debugging
54 easier.
55- Extensible filters, tests, functions, and even syntax.
56
57Jinja's philosophy is that while application logic belongs in Python if
58possible, it shouldn't make the template designer's job difficult by
59restricting functionality too much.
60
61
62Installing
63----------
64
65Install and update using `pip`_:
66
67.. code-block:: text
68
69 $ pip install -U Jinja2
70
71.. _pip: https://pip.pypa.io/en/stable/getting-started/
72
73
74In A Nutshell
75-------------
76
77.. code-block:: jinja
78
79 {% extends "base.html" %}
80 {% block title %}Members{% endblock %}
81 {% block content %}
82 <ul>
83 {% for user in users %}
84 <li><a href="{{ user.url }}">{{ user.username }}</a></li>
85 {% endfor %}
86 </ul>
87 {% endblock %}
88
89
90Donate
91------
92
93The Pallets organization develops and supports Jinja and other popular
94packages. In order to grow the community of contributors and users, and
95allow the maintainers to devote more time to the projects, `please
96donate today`_.
97
98.. _please donate today: https://palletsprojects.com/donate
99
100
101Links
102-----
103
104- Documentation: https://jinja.palletsprojects.com/
105- Changes: https://jinja.palletsprojects.com/changes/
106- PyPI Releases: https://pypi.org/project/Jinja2/
107- Source Code: https://github.com/pallets/jinja/
108- Issue Tracker: https://github.com/pallets/jinja/issues/
109- Website: https://palletsprojects.com/p/jinja/
110- Twitter: https://twitter.com/PalletsTeam
111- Chat: https://discord.gg/pallets
112
113