python-Jinja2
Port variant py37
Summary Fully featured template engine (PY37)
Package version 2.11.2
Homepage https://palletsprojects.com/p/jinja/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py38
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 20 APR 2020, 23:55:49 UTC
Port created 20 APR 2017, 05:12:41 UTC
Subpackage Descriptions
single 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 %}
    {% for user in users %}
  • {{ user.username }}
  • {% endfor %}
{% 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
Configuration Switches (platform-specific settings discarded)
PY37 ON Build using Python 3.7 PY38 OFF Build using Python 3.8
Package Dependencies by Type
Build and Runtime python-MarkupSafe:single:py37
python37:single:standard
python-setuptools:single:py37
Download groups
main mirror://PYPI/J/Jinja2
Distribution File Information
89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0 257594 Jinja2-2.11.2.tar.gz
Ports that require python-Jinja2:py37
python-Flask:py37 Lightweight WSGI web application framework (PY37)
python-Sphinx:py37 Python documentation generator (PY37)
python-coreschema:py37 Core Schema (PY37)
python-reportlib:py37 Generator HTML from pandas via Jinja2 (PY37)
python-salt:py37 Remote execution and config mgmt system (PY 37)
python-xml2rfc:py37 Request For Comment authoring with XML (PY37)