]>
git.ipfire.org Git - thirdparty/jinja.git/log
David Lord [Sat, 21 Dec 2024 18:16:13 +0000 (10:16 -0800)]
release version 3.1.5
David Lord [Sat, 21 Dec 2024 18:14:49 +0000 (10:14 -0800)]
remove test pypi
David Lord [Sat, 21 Dec 2024 18:14:25 +0000 (10:14 -0800)]
update dev dependencies
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)
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.
David Lord [Fri, 20 Dec 2024 22:52:51 +0000 (14:52 -0800)]
Add support for namespaces in tuple parsing (#1664)
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
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.
David Lord [Fri, 20 Dec 2024 16:31:34 +0000 (08:31 -0800)]
Triple quotes in docs (#2064)
David Lord [Fri, 20 Dec 2024 16:29:04 +0000 (08:29 -0800)]
edit block assignment section
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.
David Lord [Fri, 20 Dec 2024 15:58:33 +0000 (07:58 -0800)]
document SandboxedNativeEnvironment pattern (#2063)
David Lord [Fri, 20 Dec 2024 15:57:11 +0000 (07:57 -0800)]
document SandboxedNativeEnvironment pattern
David Lord [Fri, 20 Dec 2024 04:49:09 +0000 (20:49 -0800)]
Pass context to test when using select (#1762)
Rens Groothuijsen [Wed, 16 Nov 2022 00:25:49 +0000 (01:25 +0100)]
Pass context when using select
David Lord [Fri, 20 Dec 2024 04:41:36 +0000 (20:41 -0800)]
don't apply `urlize` to `@a@b` (#2062)
наб [Thu, 20 Jul 2023 02:20:13 +0000 (04:20 +0200)]
don't apply `urlize` to `@a@b`
David Lord [Fri, 20 Dec 2024 04:28:13 +0000 (20:28 -0800)]
improve annotations for methods returning copies (#1880)
Victor Westerhuis [Wed, 23 Aug 2023 07:01:55 +0000 (09:01 +0200)]
improve annotations for methods returning copies
David Lord [Fri, 20 Dec 2024 04:17:25 +0000 (20:17 -0800)]
Improve the PackageLoader error message (#1706)
David Lord [Fri, 20 Dec 2024 04:15:10 +0000 (20:15 -0800)]
separate messages, add test
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.
David Lord [Fri, 20 Dec 2024 03:38:22 +0000 (19:38 -0800)]
`FileSystemLoader` include paths in error (#1663)
David Lord [Fri, 20 Dec 2024 03:34:34 +0000 (19:34 -0800)]
clean up message, add test
Yourun-Proger [Mon, 2 May 2022 12:42:19 +0000 (15:42 +0300)]
FileSystemLoader includes search paths in error
David Lord [Fri, 20 Dec 2024 02:23:52 +0000 (18:23 -0800)]
fix default for `Environment.overlay(enable_async)` (#2061)
SamyCookie [Thu, 19 Dec 2024 09:59:57 +0000 (10:59 +0100)]
Bugfix: wrong default argument for `Environment.overlay(enable_async)` parameter
David Lord [Fri, 20 Dec 2024 02:10:28 +0000 (18:10 -0800)]
fix f-string syntax error in code generation (#1852)
Sigurd Spieckermann [Fri, 26 May 2023 12:32:36 +0000 (14:32 +0200)]
fix f-string syntax error in code generation
David Lord [Thu, 19 Dec 2024 22:33:08 +0000 (14:33 -0800)]
Merge commit from fork
fix format string vulnerability
Lydxn [Mon, 23 Sep 2024 22:09:10 +0000 (15:09 -0700)]
sandbox indirect calls to str.format
David Lord [Thu, 19 Dec 2024 20:07:14 +0000 (12:07 -0800)]
rearrange change entry
David Lord [Thu, 19 Dec 2024 16:36:07 +0000 (08:36 -0800)]
sandbox disallows `clear` and `pop` on mutable sequence (#2033)
Dylan Scott [Fri, 4 Oct 2024 20:17:07 +0000 (13:17 -0700)]
sandbox disallows `clear` and `pop` on mutable sequence
David Lord [Thu, 19 Dec 2024 16:20:38 +0000 (08:20 -0800)]
Fix pickle/copy support for the `missing` singleton (#2029)
Matt Clay [Tue, 1 Oct 2024 22:18:27 +0000 (15:18 -0700)]
Fix pickle/copy support for the `missing` singleton
David Lord [Thu, 19 Dec 2024 16:14:53 +0000 (08:14 -0800)]
Preserve `__slots__` metadata on Undefined types (#2026)
Matt Davis [Tue, 1 Oct 2024 19:20:19 +0000 (12:20 -0700)]
preserve `__slots__` on Undefined classes
David Lord [Thu, 19 Dec 2024 16:05:48 +0000 (08:05 -0800)]
Make compiled output deterministic for tuple unpacking in set tag (#2022)
Anentropic [Tue, 3 Sep 2024 21:16:33 +0000 (22:16 +0100)]
make tuple unpacking deterministic in compiler
David Lord [Thu, 19 Dec 2024 15:59:45 +0000 (07:59 -0800)]
fix how int filter handles scientific notation (#1984)
Felipe Moreno [Mon, 20 May 2024 15:02:20 +0000 (11:02 -0400)]
int filter handles OverflowError to handle scientific notation
David Lord [Thu, 19 Dec 2024 15:26:24 +0000 (07:26 -0800)]
make unique filter async aware (#1782)
Mehdi ABAAKOUK [Fri, 23 Dec 2022 08:46:29 +0000 (09:46 +0100)]
make unique filter async-aware
David Lord [Thu, 19 Dec 2024 15:15:37 +0000 (07:15 -0800)]
Use correct concat function for blocks evaluation (#1702)
Martin Krizek [Tue, 9 Aug 2022 08:12:27 +0000 (10:12 +0200)]
use env.concat when calling block reference
David Lord [Thu, 19 Dec 2024 00:08:33 +0000 (16:08 -0800)]
Simplify example for ModuleLoader (#1695)
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.
David Lord [Wed, 18 Dec 2024 17:47:24 +0000 (09:47 -0800)]
fix Jinja syntax in example (#2056)
JamesParrott [Mon, 9 Dec 2024 15:03:27 +0000 (15:03 +0000)]
fix Jinja syntax in example
David Lord [Wed, 18 Dec 2024 17:39:32 +0000 (09:39 -0800)]
clarify blocks docs (#2060)
David Lord [Wed, 18 Dec 2024 17:36:11 +0000 (09:36 -0800)]
clarify block outer scope docs
David Lord [Wed, 18 Dec 2024 17:33:31 +0000 (09:33 -0800)]
change "per default" to "by default"
David Lord [Wed, 18 Dec 2024 17:21:09 +0000 (09:21 -0800)]
fix list comprehension example (#2017)
Andreas Lindhé [Mon, 12 Aug 2024 08:54:47 +0000 (10:54 +0200)]
fix list comprehension example
David Lord [Wed, 18 Dec 2024 17:13:55 +0000 (09:13 -0800)]
Slightly improve clarity of logical bool ops (#1938)
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>
David Lord [Wed, 18 Dec 2024 16:54:02 +0000 (08:54 -0800)]
Fix typo on filter name (#1911)
Vitor Buxbaum [Fri, 17 Nov 2023 12:04:42 +0000 (09:04 -0300)]
Fix typo on filter name
David Lord [Wed, 18 Dec 2024 16:50:01 +0000 (08:50 -0800)]
fix a typo in docs/templates.rst (#1881)
Meng Xiangzhuo [Tue, 29 Aug 2023 05:19:59 +0000 (13:19 +0800)]
fix a typo in docs/templates.rst
David Lord [Wed, 18 Dec 2024 16:46:48 +0000 (08:46 -0800)]
fix boolean error about whitespace control (#1819)
Hugo Vassard [Fri, 3 Mar 2023 10:42:07 +0000 (11:42 +0100)]
fix boolean error about whitespace control
David Lord [Wed, 18 Dec 2024 16:36:06 +0000 (08:36 -0800)]
Clarify what operations the default "Undefined" supports (#1818)
Clay Sweetser [Thu, 2 Mar 2023 21:53:14 +0000 (16:53 -0500)]
Clarify what operations the default Undefined supports
David Lord [Wed, 18 Dec 2024 16:29:29 +0000 (08:29 -0800)]
Add link to MarkupSafe project mentioned in FAQ (#1767)
Matheus Felipe [Thu, 1 Dec 2022 04:31:40 +0000 (01:31 -0300)]
Add link to MarkupSafe in FAQ
David Lord [Thu, 24 Oct 2024 21:13:40 +0000 (14:13 -0700)]
update test workflow trigger
David Lord [Thu, 24 Oct 2024 21:13:23 +0000 (14:13 -0700)]
update dev dependencies
David Lord [Tue, 10 Sep 2024 15:43:21 +0000 (08:43 -0700)]
Improve documentation for initializing the i18n extension (#2023)
Aarni Koskela [Tue, 10 Sep 2024 15:23:08 +0000 (18:23 +0300)]
Improve documentation for initializing the i18n extension
Refs discussion at https://stackoverflow.com/a/
78970088
David Lord [Sat, 24 Aug 2024 00:15:36 +0000 (17:15 -0700)]
refactor 3.7 test pins
David Lord [Fri, 23 Aug 2024 23:50:05 +0000 (16:50 -0700)]
remove dependabot
David Lord [Fri, 23 Aug 2024 23:49:44 +0000 (16:49 -0700)]
apply ruff fixes
David Lord [Fri, 23 Aug 2024 23:49:33 +0000 (16:49 -0700)]
update dev dependencies
David Lord [Fri, 23 Aug 2024 23:43:52 +0000 (16:43 -0700)]
add gha-update
Timothée Mazzucotelli [Sun, 19 May 2024 13:32:56 +0000 (15:32 +0200)]
Convert rST code block to Markdown in README
David Lord [Mon, 13 May 2024 19:34:50 +0000 (12:34 -0700)]
fix test_package_zip_list on 3.13 (#1979)
Thomas Grainger [Mon, 13 May 2024 17:02:35 +0000 (18:02 +0100)]
fix test_package_zip_list on 3.13
David Lord [Mon, 13 May 2024 15:45:44 +0000 (08:45 -0700)]
test with python 3.13 (#1977)
David Lord [Mon, 13 May 2024 00:51:31 +0000 (17:51 -0700)]
test on python 3.13
update dev dependencies
refactor update tox envs
3.7 requires an old version of trio
xfail zip loader template test
Thomas Grainger [Sat, 11 May 2024 22:01:12 +0000 (23:01 +0100)]
test on trio, fix all missing aclose related warnings (#1960)
David Lord [Sat, 11 May 2024 20:45:07 +0000 (13:45 -0700)]
use asyncio.run in Template.render (#1952)
Thomas Grainger [Sun, 7 Apr 2024 08:05:54 +0000 (09:05 +0100)]
use asyncio.run
David Lord [Sat, 11 May 2024 20:41:03 +0000 (13:41 -0700)]
start version 3.1.5
David Lord [Sun, 5 May 2024 23:42:40 +0000 (16:42 -0700)]
release version 3.1.4 (#1974)
David Lord [Sun, 5 May 2024 23:36:17 +0000 (16:36 -0700)]
release version 3.1.4
David Lord [Sun, 5 May 2024 23:35:24 +0000 (16:35 -0700)]
Merge pull request from GHSA-h75v-3vvj-5mfj
disallow invalid characters in keys to xmlattr filter
David Lord [Thu, 2 May 2024 16:14:00 +0000 (09:14 -0700)]
disallow invalid characters in keys to xmlattr filter
David Lord [Thu, 2 May 2024 15:42:59 +0000 (08:42 -0700)]
add ghsa links
David Lord [Thu, 2 May 2024 15:41:50 +0000 (08:41 -0700)]
start version 3.1.4
David Lord [Tue, 23 Apr 2024 17:20:59 +0000 (10:20 -0700)]
update project files (#1968)
David Lord [Tue, 23 Apr 2024 16:29:26 +0000 (09:29 -0700)]
satisfy formatter, linter, and strict mypy
David Lord [Tue, 23 Apr 2024 16:28:57 +0000 (09:28 -0700)]
update project files (#5457)
* update pre-commit hooks
* add devcontainer
* show url in publish environment
* update actions versions
* separate typing job
* use dependabot grouped updates
ignore upload/download-artifact until slsa updates
* use sphinx.ext.extlinks instead of sphinx-issues
* update editorconfig
* update gitignore
* update .readthedocs.yaml
* license is txt, readme is md
* use pyproject.toml and flit_core instead of setuptools
add typed classifier
add pyright config
simplify urls
* tox builds docs in place
* add tox env to update all dev dependencies
* update issue and pr templates
* simplify matrix
David Lord [Mon, 22 Apr 2024 18:08:14 +0000 (11:08 -0700)]
update pyyaml dev dependency
David Lord [Wed, 10 Jan 2024 23:17:32 +0000 (15:17 -0800)]
fix pr link
David Lord [Wed, 10 Jan 2024 23:12:50 +0000 (15:12 -0800)]
release version 3.1.3 (#1926)
David Lord [Wed, 10 Jan 2024 22:33:56 +0000 (14:33 -0800)]
release version 3.1.3
David Lord [Wed, 10 Jan 2024 23:08:20 +0000 (15:08 -0800)]
skip test pypi
David Lord [Wed, 10 Jan 2024 23:01:45 +0000 (15:01 -0800)]
use trusted publishing