Source mirror for WetGrape egpu: dawn-jinja2
Find a file
Jordan c3027d8849 LSC Add 'Update Mechanism:' to README.chromium
Bug: 417367156
Change-Id: I318629733d1f75262e030105ec0b684f1307d2fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6646426
Auto-Submit: Jordan Brown <rop@google.com>
Owners-Override: Jordan Brown <rop@google.com>
Commit-Queue: Jordan Brown <rop@google.com>
Commit-Queue: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Rachael Newitt <renewitt@google.com>
Reviewed-by: Joey Scarr <jsca@google.com>
Cr-Commit-Position: refs/heads/main@{#1475401}
NOKEYCHECK=True
GitOrigin-RevId: da752eb2a3660cf1bf8dac620f6380b89dd953a7
2025-06-17 23:16:23 -07:00
patches third_party/jinja2: Set create_system=3 (unix) to ZipInfo for cross platform determinism 2024-06-06 18:22:38 -07:00
.gitignore Ignore .pyc files in third_party/[jinja2|markupsafe] 2024-01-08 20:04:13 -08:00
__init__.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
_identifier.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
async_utils.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
bccache.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
compiler.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
constants.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
debug.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
defaults.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
DIR_METADATA [buganizer] Migrate DIR_METADATA in third_party/f*-m* 2024-02-12 14:09:52 -08:00
environment.py third_party/jinja2: Set create_system=3 (unix) to ZipInfo for cross platform determinism 2024-06-06 18:22:38 -07:00
exceptions.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
ext.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
filters.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
idtracking.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
jinja2.gni third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
lexer.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
LICENSE.rst third_party/jinja2: Update to version 2.11.3 2021-10-06 03:21:29 -07:00
loaders.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
meta.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
nativetypes.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
nodes.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
optimizer.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
OWNERS Android: Switch build scripts to use python3 (reland2) 2021-08-18 09:21:25 -07:00
parser.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
py.typed third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
README.chromium LSC Add 'Update Mechanism:' to README.chromium 2025-06-17 23:16:23 -07:00
README.rst third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
runtime.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
sandbox.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
tests.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
utils.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00
visitor.py third_party/jinja2: Update to version 3.1.2 2022-12-27 20:09:33 -08:00

Jinja
=====

Jinja is a fast, expressive, extensible templating engine. Special
placeholders in the template allow writing code similar to Python
syntax. Then the template is passed data to render the final document.

It includes:

-   Template inheritance and inclusion.
-   Define and import macros within templates.
-   HTML templates can use autoescaping to prevent XSS from untrusted
    user input.
-   A sandboxed environment can safely render untrusted templates.
-   AsyncIO support for generating templates and calling async
    functions.
-   I18N support with Babel.
-   Templates are compiled to optimized Python code just-in-time and
    cached, or can be compiled ahead-of-time.
-   Exceptions point to the correct line in templates to make debugging
    easier.
-   Extensible filters, tests, functions, and even syntax.

Jinja's philosophy is that while application logic belongs in Python if
possible, it shouldn't make the template designer's job difficult by
restricting functionality too much.


Installing
----------

Install and update using `pip`_:

.. code-block:: text

    $ pip install -U Jinja2

.. _pip: https://pip.pypa.io/en/stable/getting-started/


In A Nutshell
-------------

.. code-block:: jinja

    {% extends "base.html" %}
    {% block title %}Members{% endblock %}
    {% block content %}
      <ul>
      {% for user in users %}
        <li><a href="{{ user.url }}">{{ user.username }}</a></li>
      {% endfor %}
      </ul>
    {% endblock %}


Donate
------

The Pallets organization develops and supports Jinja and other popular
packages. In order to grow the community of contributors and users, and
allow the maintainers to devote more time to the projects, `please
donate today`_.

.. _please donate today: https://palletsprojects.com/donate


Links
-----

-   Documentation: https://jinja.palletsprojects.com/
-   Changes: https://jinja.palletsprojects.com/changes/
-   PyPI Releases: https://pypi.org/project/Jinja2/
-   Source Code: https://github.com/pallets/jinja/
-   Issue Tracker: https://github.com/pallets/jinja/issues/
-   Website: https://palletsprojects.com/p/jinja/
-   Twitter: https://twitter.com/PalletsTeam
-   Chat: https://discord.gg/pallets