• Home
Name Date Size #Lines LOC

..--

.github/22-Mar-2025-244194

.editorconfigD22-Mar-2025217 1411

.flake8D22-Mar-2025652 2928

.gitattributesD22-Mar-2025631 1615

.gitignoreD22-Mar-2025178 2221

.pre-commit-config.yamlD22-Mar-2025898 3433

.readthedocs.yamlD22-Mar-2025209 1413

CHANGES.rstD22-Mar-202538.6 KiB988799

CODE_OF_CONDUCT.mdD22-Mar-20253.3 KiB7757

CONTRIBUTING.rstD22-Mar-20256.4 KiB223144

LICENSE.rstD22-Mar-20251.4 KiB2923

MANIFEST.inD22-Mar-2025182 1110

NOTICED22-Mar-20251.4 KiB2923

OAT.xmlD22-Mar-20253.8 KiB6611

README.OpenSourceD22-Mar-2025454 1211

README.modificationD22-Mar-2025597 2014

README.rstD22-Mar-20252.1 KiB7755

__init__.pyD22-Mar-20251.9 KiB3836

_compat.pyD22-Mar-20253.1 KiB13393

_identifier.pyD22-Mar-20251.9 KiB74

async_utils.pyD22-Mar-20252.4 KiB8553

asyncfilters.pyD22-Mar-20254.2 KiB159113

asyncsupport.pyD22-Mar-20257 KiB265192

bccache.pyD22-Mar-202513.7 KiB407309

bundle.jsonD22-Mar-2025930 3534

compiler.pyD22-Mar-202570.5 KiB1,9571,533

constants.pyD22-Mar-20251.4 KiB2119

debug.pyD22-Mar-20256.2 KiB192133

defaults.pyD22-Mar-20251.2 KiB4939

environment.pyD22-Mar-202559.8 KiB1,6681,356

exceptions.pyD22-Mar-20255 KiB167112

ext.pyD22-Mar-202531.1 KiB870678

filters.pyD22-Mar-202553.2 KiB1,8661,399

idtracking.pyD22-Mar-202510.5 KiB319241

jinja2.gniD22-Mar-20251 KiB3029

lexer.pyD22-Mar-202529 KiB867674

loaders.pyD22-Mar-202522.5 KiB662487

meta.pyD22-Mar-20254.3 KiB11280

nativetypes.pyD22-Mar-20254.1 KiB13198

nodes.pyD22-Mar-202533.7 KiB1,205872

optimizer.pyD22-Mar-20251.6 KiB4835

parser.pyD22-Mar-202538.8 KiB1,035902

py.typedD22-Mar-20250

runtime.pyD22-Mar-202532.6 KiB1,052808

sandbox.pyD22-Mar-202514.2 KiB429322

setup.cfgD22-Mar-20252 KiB8272

setup.pyD22-Mar-2025221 96

tests.pyD22-Mar-20255.8 KiB256183

tox.iniD22-Mar-2025553 2823

utils.pyD22-Mar-202523.4 KiB756568

visitor.pyD22-Mar-20253.5 KiB9374

README.OpenSource

1[
2    {
3        "Name": "Jinja2",
4        "License": "BSD 3-clause License",
5        "License File": "LICENSE.rst",
6        "Version Number": "3.1.3",
7        "Owner": "anguanglin@huawei.com",
8        "Upstream URL": "https://github.com/pallets/jinja",
9        "Description": "Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment."
10    }
11]
12

README.modification

1Name: Jinja2
2Version: 2.11.1
3License: BSD 3-clause License
4
5Website: http://jinja.pocoo.org/
6
7Description:(from Website)
8Jinja2 is a full-featured template engine for Python. It has full unicode
9support, an optional integrated sandboxed execution environment, widely used
10and BSD licensed.
11
12
13Source:
14https://files.pythonhosted.org/packages/d8/03/e491f423379ea14bb3a02a5238507f7d446de639b623187bccc111fbecdf/Jinja2-2.11.1.tar.gz
15MD5: 5d88c7e77aa63fc852a04f65dbfe5594
16
17Local Modifications:
18Only includes the jinja2 directory from the tarball and the LICENSE and
19AUTHORS files, removing other stuff.
20

README.rst

1Jinja
2=====
3
4Jinja is a fast, expressive, extensible templating engine. Special
5placeholders in the template allow writing code similar to Python
6syntax. Then the template is passed data to render the final document.
7
8It includes:
9
10-   Template inheritance and inclusion.
11-   Define and import macros within templates.
12-   HTML templates can use autoescaping to prevent XSS from untrusted
13    user input.
14-   A sandboxed environment can safely render untrusted templates.
15-   AsyncIO support for generating templates and calling async
16    functions.
17-   I18N support with Babel.
18-   Templates are compiled to optimized Python code just-in-time and
19    cached, or can be compiled ahead-of-time.
20-   Exceptions point to the correct line in templates to make debugging
21    easier.
22-   Extensible filters, tests, functions, and even syntax.
23
24Jinja's philosophy is that while application logic belongs in Python if
25possible, it shouldn't make the template designer's job difficult by
26restricting functionality too much.
27
28
29Installing
30----------
31
32Install and update using `pip`_:
33
34.. code-block:: text
35
36    $ pip install -U Jinja2
37
38.. _pip: https://pip.pypa.io/en/stable/getting-started/
39
40
41In A Nutshell
42-------------
43
44.. code-block:: jinja
45
46    {% extends "base.html" %}
47    {% block title %}Members{% endblock %}
48    {% block content %}
49      <ul>
50      {% for user in users %}
51        <li><a href="{{ user.url }}">{{ user.username }}</a></li>
52      {% endfor %}
53      </ul>
54    {% endblock %}
55
56
57Donate
58------
59
60The Pallets organization develops and supports Jinja and other popular
61packages. In order to grow the community of contributors and users, and
62allow the maintainers to devote more time to the projects, `please
63donate today`_.
64
65.. _please donate today: https://palletsprojects.com/donate
66
67
68Links
69-----
70
71-   Documentation: https://jinja.palletsprojects.com/
72-   Changes: https://jinja.palletsprojects.com/changes/
73-   PyPI Releases: https://pypi.org/project/Jinja2/
74-   Source Code: https://github.com/pallets/jinja/
75-   Issue Tracker: https://github.com/pallets/jinja/issues/
76-   Chat: https://discord.gg/pallets
77