./textproc/py-jinja2, Small but fast and easy to use stand-alone template engine

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.1.6, Package name: py312-jinja2-3.1.6, Maintainer: pkgsrc-users

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.


Required to run:
[devel/py-babel] [textproc/py-markupsafe] [lang/python310]

Master sites:

Filesize: 239.37 KB

Version history: (Expand)


CVS history: (Expand)


   2025-03-06 09:08:52 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-jinja2: updated to 3.1.6

3.1.6

This is the Jinja 3.1.6 security release, which fixes security issues but does
not otherwise change behavior and should not result in breaking changes
compared to the latest feature release.
   2025-02-23 19:37:25 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-jinja2: require new flit_core
   2025-02-23 19:28:23 by Thomas Klausner | Files touched by this commit (2)
Log message:
py-jinja2: adapt for flit_core 3.11

Bump PKGREVISION.
   2024-12-25 22:58:16 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-jinja2: updated to 3.1.5

Version 3.1.5

The sandboxed environment handles indirect calls to str.format, such as by \ 
passing a stored reference to a filter that calls its argument. \ 
GHSA-q2x7-8rv6-6q7h
Escape template name before formatting it into error messages, to avoid issues \ 
with names that contain f-string syntax.
Sandbox does not allow clear and pop on known mutable sequence types.
Calling sync render for an async template uses asyncio.run.
Avoid unclosed auto_aiter warnings.
Return an aclose-able AsyncGenerator from Template.generate_async.
Avoid leaving root_render_func() unclosed in Template.generate_async.
Avoid leaving async generators unclosed in blocks, includes and extends.
The runtime uses the correct concat function for the current environment when \ 
calling block references.
Make |unique async-aware, allowing it to be used after another async-aware filter.
|int filter handles OverflowError from scientific notation.
Make compiling deterministic for tuple unpacking in a {% set ... %} call.
Fix dunder protocol (copy/pickle/etc) interaction with Undefined objects.
Fix copy/pickle support for the internal missing object.
Environment.overlay(enable_async) is applied correctly.
The error message from FileSystemLoader includes the paths that were searched.
PackageLoader shows a clearer error message when the package does not contain \ 
the templates directory.
Improve annotations for methods returning copies.
urlize does not add mailto: to values like @a@b.
Tests decorated with @pass_context` can be used with the |select filter.
Using set for multiple assignment (a, b = 1, 2) does not fail when the target is \ 
a namespace attribute.
Using set in all branches of {% if %}{% elif %}{% else %} blocks does not cause \ 
the variable to be considered initially undefined.
   2024-05-06 09:15:56 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-jinja2: fix tool dependencies
   2024-05-06 06:39:49 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-jinja2: updated to 3.1.4

Version 3.1.4

The xmlattr filter does not allow keys with / solidus, > greater-than sign, \ 
or = equals sign, in addition to disallowing spaces. Regardless of any \ 
validation done by Jinja, user input should never be used as keys to this \ 
filter, or must be separately validated first. GHSA-h75v-3vvj-5mfj
   2024-01-11 09:39:30 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-jinja2: updated to 3.1.3

Version 3.1.3

- Fix compiler error when checking if required blocks in parent templates are
  empty.
- ``xmlattr`` filter does not allow keys with spaces. GHSA-h5c8-rqwp-cp95
- Make error messages stemming from invalid nesting of ``{% trans %}`` blocks
  more helpful.
   2022-04-28 20:13:35 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-jinja2: updated to 3.1.2

Version 3.1.2
- Add parameters to ``Environment.overlay`` to match ``__init__``.
- Handle race condition in ``FileSystemBytecodeCache``.