• Home
Name Date Size #Lines LOC

..--

.gitattributesD12-May-2024631 1615

.gitignoreD12-May-202418 32

LICENSE.rstD12-May-20241.4 KiB2923

NOTICED12-May-20241.4 KiB2923

OAT.xmlD12-May-20243.8 KiB6611

README.OpenSourceD12-May-2024455 1211

README.modificationD12-May-2024597 2014

README.rstD12-May-20241.8 KiB6749

__init__.pyD12-May-20241.5 KiB4541

_compat.pyD12-May-20243.1 KiB13393

_identifier.pyD12-May-20241.7 KiB74

asyncfilters.pyD12-May-20244.2 KiB159113

asyncsupport.pyD12-May-20247 KiB265192

bccache.pyD12-May-202411.9 KiB351274

bundle.jsonD12-May-2024905 3534

compiler.pyD12-May-202464.7 KiB1,8441,463

constants.pyD12-May-20241.4 KiB2219

debug.pyD12-May-20248.3 KiB269173

defaults.pyD12-May-20241.1 KiB4536

environment.pyD12-May-202449.4 KiB1,3631,107

exceptions.pyD12-May-20245.3 KiB178119

ext.pyD12-May-202425.8 KiB705549

filters.pyD12-May-202440.5 KiB1,3831,047

idtracking.pyD12-May-20249 KiB291228

jinja2.gniD12-May-20241 KiB3029

lexer.pyD12-May-202429.6 KiB849683

loaders.pyD12-May-202417.3 KiB505372

meta.pyD12-May-20244 KiB10276

nativetypes.pyD12-May-20242.7 KiB9568

nodes.pyD12-May-202430.4 KiB1,089756

optimizer.pyD12-May-20241.4 KiB4230

parser.pyD12-May-202434.8 KiB940828

runtime.pyD12-May-202429.9 KiB1,012794

sandbox.pyD12-May-202416.7 KiB511379

tests.pyD12-May-20244.7 KiB216154

utils.pyD12-May-202421.9 KiB738572

visitor.pyD12-May-20243.2 KiB8269

README.OpenSource

1[
2    {
3        "Name": "Jinja2",
4        "License": "BSD 3-clause License",
5        "License File": "LICENSE.rst",
6        "Version Number": "2.11.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/quickstart/
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
57Links
58-----
59
60-   Website: https://palletsprojects.com/p/jinja/
61-   Documentation: https://jinja.palletsprojects.com/
62-   Releases: https://pypi.org/project/Jinja2/
63-   Code: https://github.com/pallets/jinja
64-   Issue tracker: https://github.com/pallets/jinja/issues
65-   Test status: https://dev.azure.com/pallets/jinja/_build
66-   Official chat: https://discord.gg/t6rrQZH
67