]> git.ipfire.org Git - thirdparty/jinja.git/log
thirdparty/jinja.git
3 weeks agoMerge branch 'stable' main
David Lord [Sat, 14 Jun 2025 20:34:58 +0000 (13:34 -0700)] 
Merge branch 'stable'

3 weeks agoremove slsa provenance (#2105) stable
David Lord [Sat, 14 Jun 2025 20:10:44 +0000 (13:10 -0700)] 
remove slsa provenance (#2105)

3 weeks agoremove slsa provenance 2105/head
David Lord [Sat, 14 Jun 2025 20:08:46 +0000 (13:08 -0700)] 
remove slsa provenance

PyPI and trusted publishing has built-in attestation support now.

3 weeks agoMerge branch 'stable'
David Lord [Thu, 12 Jun 2025 20:59:39 +0000 (13:59 -0700)] 
Merge branch 'stable'

3 weeks agosvg logo
David Lord [Thu, 12 Jun 2025 20:58:36 +0000 (13:58 -0700)] 
svg logo

3 weeks agoMerge branch 'stable'
David Lord [Wed, 11 Jun 2025 17:38:29 +0000 (10:38 -0700)] 
Merge branch 'stable'

3 weeks agosvg logo (#2102)
David Lord [Wed, 11 Jun 2025 17:37:58 +0000 (10:37 -0700)] 
svg logo (#2102)

3 weeks agosvg logo 2102/head
David Lord [Wed, 11 Jun 2025 17:28:39 +0000 (10:28 -0700)] 
svg logo

5 weeks agoupdate identifier pattern for Python 3.10 (#2099)
David Lord [Wed, 28 May 2025 19:14:31 +0000 (12:14 -0700)] 
update identifier pattern for Python 3.10 (#2099)

5 weeks agoupdate identifier pattern for Python 3.10 2099/head
David Lord [Wed, 28 May 2025 19:10:09 +0000 (12:10 -0700)] 
update identifier pattern for Python 3.10

5 weeks agoadd Python version comment
David Lord [Wed, 28 May 2025 19:09:42 +0000 (12:09 -0700)] 
add Python version comment

5 weeks agofix typo
David Lord [Wed, 28 May 2025 18:44:50 +0000 (11:44 -0700)] 
fix typo

5 weeks agodeprecate `__version__` (#2098)
David Lord [Wed, 28 May 2025 18:43:08 +0000 (11:43 -0700)] 
deprecate `__version__` (#2098)

5 weeks agodeprecate `__version__` 2098/head
David Lord [Wed, 28 May 2025 18:39:42 +0000 (11:39 -0700)] 
deprecate `__version__`

5 weeks agobump minimum versions of dependencies (#2097)
David Lord [Wed, 28 May 2025 18:20:08 +0000 (11:20 -0700)] 
bump minimum versions of dependencies (#2097)

5 weeks agobump minimum versions of dependencies 2097/head
David Lord [Wed, 28 May 2025 18:17:40 +0000 (11:17 -0700)] 
bump minimum versions of dependencies

5 weeks agodrop end of life python versions (#2096)
David Lord [Wed, 28 May 2025 18:15:29 +0000 (11:15 -0700)] 
drop end of life python versions (#2096)

5 weeks agofix ruff pyupgrade findings 2096/head
David Lord [Wed, 28 May 2025 18:10:30 +0000 (11:10 -0700)] 
fix ruff pyupgrade findings

5 weeks agodrop end of life python versions
David Lord [Wed, 28 May 2025 18:10:03 +0000 (11:10 -0700)] 
drop end of life python versions

5 weeks agoUpdated dependency management to uv (#2093)
David Lord [Wed, 28 May 2025 17:10:27 +0000 (10:10 -0700)] 
Updated dependency management to uv (#2093)

5 weeks agofix type/lint/format findings 2093/head
Adam Englander [Wed, 28 May 2025 17:06:54 +0000 (10:06 -0700)] 
fix type/lint/format findings

5 weeks agouse uv for dependency management
Adam Englander [Wed, 28 May 2025 17:06:18 +0000 (10:06 -0700)] 
use uv for dependency management

drop python 3.7 and 3.8
move tox config into pyproject
use new license metadata

4 months agoMerge branch 'stable'
David Lord [Wed, 5 Mar 2025 20:15:40 +0000 (12:15 -0800)] 
Merge branch 'stable'

4 months agorelease version 3.1.6 (#2077)
David Lord [Wed, 5 Mar 2025 20:05:21 +0000 (12:05 -0800)] 
release version 3.1.6 (#2077)

4 months agorelease version 3.1.6 2077/head 3.1.6
David Lord [Wed, 5 Mar 2025 19:51:17 +0000 (11:51 -0800)] 
release version 3.1.6

4 months agoMerge commit from fork
David Lord [Wed, 5 Mar 2025 19:49:35 +0000 (11:49 -0800)] 
Merge commit from fork

attr filter uses env.getattr

4 months agoattr filter uses env.getattr
David Lord [Wed, 5 Mar 2025 18:08:48 +0000 (10:08 -0800)] 
attr filter uses env.getattr

4 months agostart version 3.1.6
David Lord [Wed, 5 Mar 2025 17:50:59 +0000 (09:50 -0800)] 
start version 3.1.6

5 months agouse global contributing guide (#2070)
David Lord [Tue, 14 Jan 2025 21:45:32 +0000 (13:45 -0800)] 
use global contributing guide (#2070)

5 months agouse global contributing guide 2070/head
David Lord [Tue, 14 Jan 2025 21:43:41 +0000 (13:43 -0800)] 
use global contributing guide

Remove the per-project files so we don't have to keep them in sync.
GitHub's UI links to everything except the contributing guide, so add a
section about that to the readme.

6 months agoMerge branch 'stable'
David Lord [Sat, 21 Dec 2024 18:47:46 +0000 (10:47 -0800)] 
Merge branch 'stable'

6 months agouse project advisory link instead of global
David Lord [Sat, 21 Dec 2024 18:47:08 +0000 (10:47 -0800)] 
use project advisory link instead of global

6 months agorelease version 3.1.5 (#2066)
David Lord [Sat, 21 Dec 2024 18:30:50 +0000 (10:30 -0800)] 
release version 3.1.5 (#2066)

6 months agorelease version 3.1.5 2066/head 3.1.5
David Lord [Sat, 21 Dec 2024 18:16:13 +0000 (10:16 -0800)] 
release version 3.1.5

6 months agoremove test pypi
David Lord [Sat, 21 Dec 2024 18:14:49 +0000 (10:14 -0800)] 
remove test pypi

6 months agoupdate dev dependencies
David Lord [Sat, 21 Dec 2024 18:14:25 +0000 (10:14 -0800)] 
update dev dependencies

6 months agoFix bug involving calling set on a template parameter within all branches of an if...
David Lord [Sat, 21 Dec 2024 17:46:55 +0000 (09:46 -0800)] 
Fix bug involving calling set on a template parameter within all branches of an if block (#1665)

6 months agoFix bug where set would sometimes fail within if 1665/head
Kevin Brown-Silva [Mon, 2 May 2022 21:33:58 +0000 (15:33 -0600)] 
Fix bug where set would sometimes fail within if

There was a bug that came as the result of an early optimization done
within ID tracking that caused loading parameters to fail in a very
specific and rare edge case. That edge case only occurred when the
parameter was being set within all 3 standard branches of an if block,
since the optimization would assume that the parameter was never being
referenced and was only ever being set. This would cause the variable to
be set to undefined.

The fix for this was to remove the optimization and still continue to
load in the parameter even if it is set in all 3 branches.

6 months agoAdd support for namespaces in tuple parsing (#1664)
David Lord [Fri, 20 Dec 2024 22:52:51 +0000 (14:52 -0800)] 
Add support for namespaces in tuple parsing (#1664)

6 months agomore comments about nsref assignment 1664/head
David Lord [Fri, 20 Dec 2024 22:02:31 +0000 (14:02 -0800)] 
more comments about nsref assignment

only emit nsref instance check once per ref name
refactor primary name parsing a bit

6 months agoAdd support for namespaces in tuple assignment
Kevin Brown-Silva [Mon, 2 May 2022 18:01:08 +0000 (12:01 -0600)] 
Add support for namespaces in tuple assignment

This fixes a bug that existed because namespaces within `{% set %}`
were treated as a special case. This special case had the side-effect
of bypassing the code which allows for tuples to be assigned to.

The solution was to make tuple handling (and by extension, primary token
handling) aware of namespaces so that namespace tokens can be handled
appropriately. This is handled in a backwards-compatible way which
ensures that we do not try to parse namespace tokens when we otherwise
would be expecting to parse out name tokens with attributes.

Namespace instance checks are moved earlier, and deduplicated, so that
all checks are done before the assignment. Otherwise, the check could be
emitted in the middle of the tuple.

6 months agoTriple quotes in docs (#2064)
David Lord [Fri, 20 Dec 2024 16:31:34 +0000 (08:31 -0800)] 
Triple quotes in docs (#2064)

6 months agoedit block assignment section 2064/head
David Lord [Fri, 20 Dec 2024 16:29:04 +0000 (08:29 -0800)] 
edit block assignment section

6 months agoMake ease of use update to template documentation
ratchek [Wed, 13 Dec 2023 01:43:36 +0000 (20:43 -0500)] 
Make ease of use update to template documentation

Add the phrases 'multiline comment' and 'triple quotes' to docs
in the templates/#block-assignments section. This allows for new
users to find this alternative easily.

6 months agodocument SandboxedNativeEnvironment pattern (#2063)
David Lord [Fri, 20 Dec 2024 15:58:33 +0000 (07:58 -0800)] 
document SandboxedNativeEnvironment pattern (#2063)

6 months agodocument SandboxedNativeEnvironment pattern 2063/head
David Lord [Fri, 20 Dec 2024 15:57:11 +0000 (07:57 -0800)] 
document SandboxedNativeEnvironment pattern

6 months agoPass context to test when using select (#1762)
David Lord [Fri, 20 Dec 2024 04:49:09 +0000 (20:49 -0800)] 
Pass context to test when using select (#1762)

6 months agoPass context when using select 1762/head
Rens Groothuijsen [Wed, 16 Nov 2022 00:25:49 +0000 (01:25 +0100)] 
Pass context when using select

6 months agodon't apply `urlize` to `@a@b` (#2062)
David Lord [Fri, 20 Dec 2024 04:41:36 +0000 (20:41 -0800)] 
don't apply `urlize` to `@a@b` (#2062)

6 months agodon't apply `urlize` to `@a@b` 2062/head
наб [Thu, 20 Jul 2023 02:20:13 +0000 (04:20 +0200)] 
don't apply `urlize` to `@a@b`

6 months agoimprove annotations for methods returning copies (#1880)
David Lord [Fri, 20 Dec 2024 04:28:13 +0000 (20:28 -0800)] 
improve annotations for methods returning copies (#1880)

6 months agoimprove annotations for methods returning copies 1880/head
Victor Westerhuis [Wed, 23 Aug 2023 07:01:55 +0000 (09:01 +0200)] 
improve annotations for methods returning copies

6 months agoImprove the PackageLoader error message (#1706)
David Lord [Fri, 20 Dec 2024 04:17:25 +0000 (20:17 -0800)] 
Improve the PackageLoader error message (#1706)

6 months agoseparate messages, add test 1706/head
David Lord [Fri, 20 Dec 2024 04:15:10 +0000 (20:15 -0800)] 
separate messages, add test

6 months agoImprove the PackageLoader error message
Lily Foote [Thu, 11 Aug 2022 14:22:08 +0000 (15:22 +0100)] 
Improve the PackageLoader error message

This exception is raised when the `package_path` directory (default "templates") is not
found, so explain this.

6 months ago`FileSystemLoader` include paths in error (#1663)
David Lord [Fri, 20 Dec 2024 03:38:22 +0000 (19:38 -0800)] 
`FileSystemLoader` include paths in error (#1663)

6 months agoclean up message, add test 1663/head
David Lord [Fri, 20 Dec 2024 03:34:34 +0000 (19:34 -0800)] 
clean up message, add test

6 months agoFileSystemLoader includes search paths in error
Yourun-Proger [Mon, 2 May 2022 12:42:19 +0000 (15:42 +0300)] 
FileSystemLoader includes search paths in error

6 months agofix default for `Environment.overlay(enable_async)` (#2061)
David Lord [Fri, 20 Dec 2024 02:23:52 +0000 (18:23 -0800)] 
fix default for `Environment.overlay(enable_async)` (#2061)

6 months agoBugfix: wrong default argument for `Environment.overlay(enable_async)` parameter 2061/head
SamyCookie [Thu, 19 Dec 2024 09:59:57 +0000 (10:59 +0100)] 
Bugfix: wrong default argument for `Environment.overlay(enable_async)` parameter

6 months agofix f-string syntax error in code generation (#1852)
David Lord [Fri, 20 Dec 2024 02:10:28 +0000 (18:10 -0800)] 
fix f-string syntax error in code generation (#1852)

6 months agofix f-string syntax error in code generation 1852/head
Sigurd Spieckermann [Fri, 26 May 2023 12:32:36 +0000 (14:32 +0200)] 
fix f-string syntax error in code generation

6 months agoMerge commit from fork
David Lord [Thu, 19 Dec 2024 22:33:08 +0000 (14:33 -0800)] 
Merge commit from fork

fix format string vulnerability

6 months agosandbox indirect calls to str.format
Lydxn [Mon, 23 Sep 2024 22:09:10 +0000 (15:09 -0700)] 
sandbox indirect calls to str.format

6 months agorearrange change entry
David Lord [Thu, 19 Dec 2024 20:07:14 +0000 (12:07 -0800)] 
rearrange change entry

6 months agosandbox disallows `clear` and `pop` on mutable sequence (#2033)
David Lord [Thu, 19 Dec 2024 16:36:07 +0000 (08:36 -0800)] 
sandbox disallows `clear` and `pop` on mutable sequence (#2033)

6 months agosandbox disallows `clear` and `pop` on mutable sequence 2033/head
Dylan Scott [Fri, 4 Oct 2024 20:17:07 +0000 (13:17 -0700)] 
sandbox disallows `clear` and `pop` on mutable sequence

6 months agoFix pickle/copy support for the `missing` singleton (#2029)
David Lord [Thu, 19 Dec 2024 16:20:38 +0000 (08:20 -0800)] 
Fix pickle/copy support for the `missing` singleton (#2029)

6 months agoFix pickle/copy support for the `missing` singleton 2029/head
Matt Clay [Tue, 1 Oct 2024 22:18:27 +0000 (15:18 -0700)] 
Fix pickle/copy support for the `missing` singleton

6 months agoPreserve `__slots__` metadata on Undefined types (#2026)
David Lord [Thu, 19 Dec 2024 16:14:53 +0000 (08:14 -0800)] 
Preserve `__slots__` metadata on Undefined types (#2026)

6 months agopreserve `__slots__` on Undefined classes 2026/head
Matt Davis [Tue, 1 Oct 2024 19:20:19 +0000 (12:20 -0700)] 
preserve `__slots__` on Undefined classes

6 months agoMake compiled output deterministic for tuple unpacking in set tag (#2022)
David Lord [Thu, 19 Dec 2024 16:05:48 +0000 (08:05 -0800)] 
Make compiled output deterministic for tuple unpacking in set tag (#2022)

6 months agomake tuple unpacking deterministic in compiler 2022/head
Anentropic [Tue, 3 Sep 2024 21:16:33 +0000 (22:16 +0100)] 
make tuple unpacking deterministic in compiler

6 months agofix how int filter handles scientific notation (#1984)
David Lord [Thu, 19 Dec 2024 15:59:45 +0000 (07:59 -0800)] 
fix how int filter handles scientific notation (#1984)

6 months agoint filter handles OverflowError to handle scientific notation 1984/head
Felipe Moreno [Mon, 20 May 2024 15:02:20 +0000 (11:02 -0400)] 
int filter handles OverflowError to handle scientific notation

6 months agomake unique filter async aware (#1782)
David Lord [Thu, 19 Dec 2024 15:26:24 +0000 (07:26 -0800)] 
make unique filter async aware (#1782)

6 months agomake unique filter async-aware 1782/head
Mehdi ABAAKOUK [Fri, 23 Dec 2022 08:46:29 +0000 (09:46 +0100)] 
make unique filter async-aware

6 months agoUse correct concat function for blocks evaluation (#1702)
David Lord [Thu, 19 Dec 2024 15:15:37 +0000 (07:15 -0800)] 
Use correct concat function for blocks evaluation (#1702)

6 months agouse env.concat when calling block reference 1702/head
Martin Krizek [Tue, 9 Aug 2022 08:12:27 +0000 (10:12 +0200)] 
use env.concat when calling block reference

6 months agoSimplify example for ModuleLoader (#1695)
David Lord [Thu, 19 Dec 2024 00:08:33 +0000 (16:08 -0800)] 
Simplify example for ModuleLoader (#1695)

6 months agoSimplify example for ModuleLoader 1695/head
Charles-Axel Dein [Tue, 26 Jul 2022 09:03:16 +0000 (11:03 +0200)] 
Simplify example for ModuleLoader

The `ModuleLoader` example seems copy pasted from `ChoiceLoader`. As a result it's not immediately clear how their API differ.

6 months agofix Jinja syntax in example (#2056)
David Lord [Wed, 18 Dec 2024 17:47:24 +0000 (09:47 -0800)] 
fix Jinja syntax in example (#2056)

6 months agofix Jinja syntax in example 2056/head
JamesParrott [Mon, 9 Dec 2024 15:03:27 +0000 (15:03 +0000)] 
fix Jinja syntax in example

6 months agoclarify blocks docs (#2060)
David Lord [Wed, 18 Dec 2024 17:39:32 +0000 (09:39 -0800)] 
clarify blocks docs (#2060)

6 months agoclarify block outer scope docs 2060/head
David Lord [Wed, 18 Dec 2024 17:36:11 +0000 (09:36 -0800)] 
clarify block outer scope docs

6 months agochange "per default" to "by default"
David Lord [Wed, 18 Dec 2024 17:33:31 +0000 (09:33 -0800)] 
change "per default" to "by default"

6 months agofix list comprehension example (#2017)
David Lord [Wed, 18 Dec 2024 17:21:09 +0000 (09:21 -0800)] 
fix list comprehension example (#2017)

6 months agofix list comprehension example 2017/head
Andreas LindhĂ© [Mon, 12 Aug 2024 08:54:47 +0000 (10:54 +0200)] 
fix list comprehension example

6 months agoSlightly improve clarity of logical bool ops (#1938)
David Lord [Wed, 18 Dec 2024 17:13:55 +0000 (09:13 -0800)] 
Slightly improve clarity of logical bool ops (#1938)

6 months agoimprove clarity of logical bool ops 1938/head
Stephen Rosen [Fri, 16 Feb 2024 07:39:44 +0000 (01:39 -0600)] 
improve clarity of logical bool ops

co-authored-by: David Lord <davidism@gmail.com>

6 months agoFix typo on filter name (#1911)
David Lord [Wed, 18 Dec 2024 16:54:02 +0000 (08:54 -0800)] 
Fix typo on filter name (#1911)

6 months agoFix typo on filter name 1911/head
Vitor Buxbaum [Fri, 17 Nov 2023 12:04:42 +0000 (09:04 -0300)] 
Fix typo on filter name

6 months agofix a typo in docs/templates.rst (#1881)
David Lord [Wed, 18 Dec 2024 16:50:01 +0000 (08:50 -0800)] 
fix a typo in docs/templates.rst (#1881)

6 months agofix a typo in docs/templates.rst 1881/head
Meng Xiangzhuo [Tue, 29 Aug 2023 05:19:59 +0000 (13:19 +0800)] 
fix a typo in docs/templates.rst

6 months agofix boolean error about whitespace control (#1819)
David Lord [Wed, 18 Dec 2024 16:46:48 +0000 (08:46 -0800)] 
fix boolean error about whitespace control (#1819)

6 months agofix boolean error about whitespace control 1819/head
Hugo Vassard [Fri, 3 Mar 2023 10:42:07 +0000 (11:42 +0100)] 
fix boolean error about whitespace control

6 months agoClarify what operations the default "Undefined" supports (#1818)
David Lord [Wed, 18 Dec 2024 16:36:06 +0000 (08:36 -0800)] 
Clarify what operations the default "Undefined" supports (#1818)

6 months agoClarify what operations the default Undefined supports 1818/head
Clay Sweetser [Thu, 2 Mar 2023 21:53:14 +0000 (16:53 -0500)] 
Clarify what operations the default Undefined supports

6 months agoAdd link to MarkupSafe project mentioned in FAQ (#1767)
David Lord [Wed, 18 Dec 2024 16:29:29 +0000 (08:29 -0800)] 
Add link to MarkupSafe project mentioned in FAQ (#1767)

6 months agoAdd link to MarkupSafe in FAQ 1767/head
Matheus Felipe [Thu, 1 Dec 2022 04:31:40 +0000 (01:31 -0300)] 
Add link to MarkupSafe in FAQ