Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.github/ | 12-May-2024 | - | 165 | 129 | ||
.editorconfig | D | 12-May-2024 | 217 | 14 | 11 | |
.gitattributes | D | 12-May-2024 | 631 | 16 | 15 | |
.gitignore | D | 12-May-2024 | 178 | 22 | 21 | |
.pre-commit-config.yaml | D | 12-May-2024 | 949 | 35 | 34 | |
.readthedocs.yaml | D | 12-May-2024 | 209 | 14 | 13 | |
CHANGES.rst | D | 12-May-2024 | 38.3 KiB | 976 | 791 | |
CODE_OF_CONDUCT.md | D | 12-May-2024 | 3.3 KiB | 77 | 57 | |
CONTRIBUTING.rst | D | 12-May-2024 | 6.4 KiB | 223 | 144 | |
LICENSE.rst | D | 12-May-2024 | 1.4 KiB | 29 | 23 | |
MANIFEST.in | D | 12-May-2024 | 182 | 11 | 10 | |
NOTICE | D | 12-May-2024 | 1.4 KiB | 29 | 23 | |
OAT.xml | D | 12-May-2024 | 3.8 KiB | 66 | 11 | |
README.OpenSource | D | 12-May-2024 | 454 | 12 | 11 | |
README.modification | D | 12-May-2024 | 597 | 20 | 14 | |
README.rst | D | 12-May-2024 | 2.2 KiB | 79 | 57 | |
__init__.py | D | 12-May-2024 | 1.9 KiB | 38 | 36 | |
_compat.py | D | 12-May-2024 | 3.1 KiB | 133 | 93 | |
_identifier.py | D | 12-May-2024 | 1.9 KiB | 7 | 4 | |
async_utils.py | D | 12-May-2024 | 2.4 KiB | 85 | 53 | |
asyncfilters.py | D | 12-May-2024 | 4.2 KiB | 159 | 113 | |
asyncsupport.py | D | 12-May-2024 | 7 KiB | 265 | 192 | |
bccache.py | D | 12-May-2024 | 13.7 KiB | 407 | 309 | |
bundle.json | D | 12-May-2024 | 905 | 35 | 34 | |
compiler.py | D | 12-May-2024 | 70.5 KiB | 1,958 | 1,533 | |
constants.py | D | 12-May-2024 | 1.4 KiB | 21 | 19 | |
debug.py | D | 12-May-2024 | 6.2 KiB | 192 | 133 | |
defaults.py | D | 12-May-2024 | 1.2 KiB | 49 | 39 | |
environment.py | D | 12-May-2024 | 59.9 KiB | 1,668 | 1,356 | |
exceptions.py | D | 12-May-2024 | 5 KiB | 167 | 112 | |
ext.py | D | 12-May-2024 | 30.8 KiB | 860 | 668 | |
filters.py | D | 12-May-2024 | 52.6 KiB | 1,855 | 1,391 | |
idtracking.py | D | 12-May-2024 | 10.5 KiB | 319 | 241 | |
jinja2.gni | D | 12-May-2024 | 1 KiB | 30 | 29 | |
lexer.py | D | 12-May-2024 | 29 KiB | 867 | 674 | |
loaders.py | D | 12-May-2024 | 22.7 KiB | 662 | 490 | |
meta.py | D | 12-May-2024 | 4.3 KiB | 112 | 80 | |
nativetypes.py | D | 12-May-2024 | 4.1 KiB | 131 | 98 | |
nodes.py | D | 12-May-2024 | 33.7 KiB | 1,205 | 872 | |
optimizer.py | D | 12-May-2024 | 1.6 KiB | 48 | 35 | |
parser.py | D | 12-May-2024 | 38.7 KiB | 1,033 | 900 | |
py.typed | D | 12-May-2024 | 0 | |||
runtime.py | D | 12-May-2024 | 32.7 KiB | 1,054 | 810 | |
sandbox.py | D | 12-May-2024 | 14.2 KiB | 429 | 322 | |
setup.cfg | D | 12-May-2024 | 2.7 KiB | 110 | 99 | |
setup.py | D | 12-May-2024 | 221 | 9 | 6 | |
tests.py | D | 12-May-2024 | 5.8 KiB | 256 | 183 | |
tox.ini | D | 12-May-2024 | 533 | 25 | 20 | |
utils.py | D | 12-May-2024 | 23.4 KiB | 756 | 568 | |
visitor.py | D | 12-May-2024 | 3.5 KiB | 93 | 74 |
README.OpenSource
1[ 2 { 3 "Name": "Jinja2", 4 "License": "BSD 3-clause License", 5 "License File": "LICENSE.rst", 6 "Version Number": "3.1.2", 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- Website: https://palletsprojects.com/p/jinja/ 77- Twitter: https://twitter.com/PalletsTeam 78- Chat: https://discord.gg/pallets 79