mw-jinja2


Namemw-jinja2 JSON
Version 2.11.3 PyPI version JSON
download
home_pagehttps://palletsprojects.com/p/jinja/
SummaryA very fast and expressive template engine.
upload_time2022-12-08 17:44:39
maintainerPallets
docs_urlNone
authorArmin Ronacher
requires_python>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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



            

Raw data

            {
    "_id": null,
    "home_page": "https://palletsprojects.com/p/jinja/",
    "name": "mw-jinja2",
    "maintainer": "Pallets",
    "docs_url": null,
    "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
    "maintainer_email": "contact@palletsprojects.com",
    "keywords": "",
    "author": "Armin Ronacher",
    "author_email": "armin.ronacher@active-4.com",
    "download_url": "",
    "platform": null,
    "description": "Jinja\n=====\n\nJinja is a fast, expressive, extensible templating engine. Special\nplaceholders in the template allow writing code similar to Python\nsyntax. Then the template is passed data to render the final document.\n\nIt includes:\n\n-   Template inheritance and inclusion.\n-   Define and import macros within templates.\n-   HTML templates can use autoescaping to prevent XSS from untrusted\n    user input.\n-   A sandboxed environment can safely render untrusted templates.\n-   AsyncIO support for generating templates and calling async\n    functions.\n-   I18N support with Babel.\n-   Templates are compiled to optimized Python code just-in-time and\n    cached, or can be compiled ahead-of-time.\n-   Exceptions point to the correct line in templates to make debugging\n    easier.\n-   Extensible filters, tests, functions, and even syntax.\n\nJinja's philosophy is that while application logic belongs in Python if\npossible, it shouldn't make the template designer's job difficult by\nrestricting functionality too much.\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n    $ pip install -U Jinja2\n\n.. _pip: https://pip.pypa.io/en/stable/quickstart/\n\n\nIn A Nutshell\n-------------\n\n.. code-block:: jinja\n\n    {% extends \"base.html\" %}\n    {% block title %}Members{% endblock %}\n    {% block content %}\n      <ul>\n      {% for user in users %}\n        <li><a href=\"{{ user.url }}\">{{ user.username }}</a></li>\n      {% endfor %}\n      </ul>\n    {% endblock %}\n\n\nLinks\n-----\n\n-   Website: https://palletsprojects.com/p/jinja/\n-   Documentation: https://jinja.palletsprojects.com/\n-   Releases: https://pypi.org/project/Jinja2/\n-   Code: https://github.com/pallets/jinja\n-   Issue tracker: https://github.com/pallets/jinja/issues\n-   Test status: https://dev.azure.com/pallets/jinja/_build\n-   Official chat: https://discord.gg/t6rrQZH\n\n\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "A very fast and expressive template engine.",
    "version": "2.11.3",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "a1efc670a9d2c26a3580151d9bd65544",
                "sha256": "a20a435a5b925fa3e7558720330579dce2df39cdbc9c05987cf59d6c987c28d2"
            },
            "downloads": -1,
            "filename": "mw_jinja2-2.11.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a1efc670a9d2c26a3580151d9bd65544",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
            "size": 125918,
            "upload_time": "2022-12-08T17:44:39",
            "upload_time_iso_8601": "2022-12-08T17:44:39.757677Z",
            "url": "https://files.pythonhosted.org/packages/3e/34/532106476d4af416a20a5344866de37a65cb5f0ed12cef0048c3e0896d4c/mw_jinja2-2.11.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-08 17:44:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "mw-jinja2"
}
        
Elapsed time: 0.01893s