dawn-cmake/third_party/jinja2
Luke Street f55d064a0d Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
..
patches Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
DIR_METADATA Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
Jinja2-2.11.3.tar.gz.md5 Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
Jinja2-2.11.3.tar.gz.sha512 Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
LICENSE.rst Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
OWNERS Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
README.chromium Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
README.rst Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
__init__.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
_compat.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
_identifier.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
asyncfilters.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
asyncsupport.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
bccache.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
compiler.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
constants.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
debug.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
defaults.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
environment.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
exceptions.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
ext.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
filters.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
idtracking.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
lexer.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
loaders.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
meta.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
nativetypes.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
nodes.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
optimizer.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
parser.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
runtime.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
sandbox.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
tests.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
utils.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00
visitor.py Add vendored dependencies & cleanup script 2022-02-11 14:07:53 -05:00

README.rst

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/quickstart/


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 %}


Links
-----

-   Website: https://palletsprojects.com/p/jinja/
-   Documentation: https://jinja.palletsprojects.com/
-   Releases: https://pypi.org/project/Jinja2/
-   Code: https://github.com/pallets/jinja
-   Issue tracker: https://github.com/pallets/jinja/issues
-   Test status: https://dev.azure.com/pallets/jinja/_build
-   Official chat: https://discord.gg/t6rrQZH