A fast and easy to use template engine written in pure Python
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. Here a small example of a Jinja template:
{% extends 'base.html' %}
{% block title %}Memberlist{% endblock %}
{% block content %}
{% for user in users %}
{{ user.username }}
{% endfor %}
{% endblock %}
- Sources inherited from project systemsmanagement:s...ack:bundle:testing
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout systemsmanagement:saltstack:bundle:testing:SLE12/saltbundlepy-jinja2 && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
Jinja2-3.0.3.tar.gz | 0000269196 263 KB | |
saltbundlepy-jinja2.changes | 0000022464 21.9 KB | |
saltbundlepy-jinja2.spec | 0000002132 2.08 KB |
Revision 3 (latest revision is 4)
Pablo Suárez Hernández (PSuarezHernandez)
accepted
request 991254
from
Victor Zhestkov (vzhestkov)
(revision 3)
- update to 3.0.3 * Fix traceback rewriting internals for Python 3.10 and 3.11. (#1535) * Fix how the native environment treats leading and trailing spaces when parsing values on Python 3.10. (PR#1537) * Improve async performance by avoiding checks for common types. (#1514) * Revert change to ``hash(Node)`` behavior. Nodes are hashed by id again (#1521) * ``PackageLoader`` works when the package is a single module file. (#1512) - update to 3.0.2 * Fix a loop scoping bug that caused assignments in nested loops to still be referenced outside of it. #1427 * Make compile_templates deterministic for filter and import names. #1452, #1453 * Revert an unintended change that caused Undefined to act like StrictUndefined for the in operator. #1448 * Imported macros have access to the current template globals in async environments. #1494 * PackageLoader will not include a current directory (.) path segment. This allows loading templates from the root of a zip import. #1467 - update to 3.0.1 Read the announcement: https://palletsprojects.com/blog/flask-2-0-released/ Read the full list of changes: https://jinja.palletsprojects.com/changes/#version-3-0-0 - update to 2.11.3 * Improve the speed of the urlize filter by reducing regex backtracking. Email matching requires a word character at the start of the domain part and only word characters in the TLD (CVE-2020-28493 bsc#1181944). - update to 2.11.2 * Fix a bug that caused callable objects with __getattr__, like :class:~unittest.mock.Mock to be treated as a :func:contextfunction. :issue:1145
Comments 0