Commit Graph

527 Commits

Author SHA1 Message Date
David Lord
0514dce509
Merge branch 'stable' 2025-06-12 13:59:39 -07:00
David Lord
ede7905d30
svg logo 2025-06-12 13:58:36 -07:00
David Lord
77092a882a
Merge branch 'stable' 2025-06-11 10:38:29 -07:00
David Lord
8ee8f90d67
svg logo 2025-06-11 10:32:48 -07:00
David Lord
0cc6ff9051
drop end of life python versions 2025-05-28 11:13:57 -07:00
David Lord
6aeab5d1da
Merge branch 'stable' 2024-12-21 10:47:46 -08:00
David Lord
ab8218c7a1
use project advisory link instead of global 2024-12-21 10:47:08 -08:00
Kevin Brown-Silva
ee832194cd
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.
2024-12-20 14:09:40 -08:00
David Lord
8a8eafc6b9
edit block assignment section 2024-12-20 08:29:04 -08:00
ratchek
d6998ab74e
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.
2024-12-20 08:19:26 -08:00
David Lord
ae68c961dc
document SandboxedNativeEnvironment pattern 2024-12-20 07:57:11 -08:00
David Lord
786d12b529
clarify block outer scope docs 2024-12-18 09:36:11 -08:00
David Lord
c667d56de3
change "per default" to "by default" 2024-12-18 09:33:31 -08:00
Stephen Rosen
64a6bd1b66
improve clarity of logical bool ops
co-authored-by: David Lord <davidism@gmail.com>
2024-12-18 09:11:57 -08:00
Vitor Buxbaum
7d023e5a86
Fix typo on filter name 2024-12-18 08:52:06 -08:00
Meng Xiangzhuo
8a90b760a8
fix a typo in docs/templates.rst 2024-12-18 08:48:25 -08:00
Hugo Vassard
9c3622c1af
fix boolean error about whitespace control 2024-12-18 08:44:58 -08:00
Matheus Felipe
f502aac8dc
Add link to MarkupSafe in FAQ 2024-12-18 08:27:51 -08:00
Ronan Amicel
d680a95932
Fix nl2br example in documentation (#2054) 2024-12-07 11:04:28 -05:00
David Lord
ee6c734e9b
Merge branch 'stable' 2024-10-24 14:14:07 -07:00
Aarni Koskela
a9a0197e3c Improve documentation for initializing the i18n extension
Refs discussion at https://stackoverflow.com/a/78970088
2024-09-10 18:42:07 +03:00
David Lord
b002d9c6c3
Merge branch '3.1.x' 2024-05-13 08:47:27 -07:00
Thomas Grainger
5bc613ec45
use asyncio.run 2024-05-11 13:41:46 -07:00
David Lord
bbd5bcee7b
Merge branch '3.1.x' 2024-05-02 09:18:48 -07:00
David Lord
a7863ba9d3
add ghsa links 2024-05-02 08:42:59 -07:00
David Lord
fcd3d3bbf3
drop support for Python 3.7 2024-04-23 12:22:59 -07:00
David Lord
20477c6357
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
2024-04-23 09:28:57 -07:00
David Lord
bfceede8ad
remove unused links 2023-06-01 08:09:59 -07:00
neilsquinn
3ccc61b0bd
Update templates.rst
Fix typo
2022-10-25 09:33:24 -04:00
Simon Willison
b1bb29d292
Show how {% filter %} can take filter arguments
Closes #1732
2022-10-13 09:09:49 -07:00
David Lord
0a10079f33
update dev dependencies 2022-10-13 09:08:56 -07:00
Anton Topchii
9fde7eb820
Update pylons url in documentation (#1715)
Update pylons homepage url in docs
2022-09-02 06:11:15 -07:00
Sébastien DIDIER
c4bff4efee Add in docs/switching/#loops little improvement for consistency 2022-07-22 17:47:56 +02:00
Sébastien DIDIER
5e636989f0 Fix typo in docs/api/#custom-tests 2022-07-18 15:35:31 +02:00
David Lord
8fec9b4220
fix get_template example 2022-07-04 07:36:59 -07:00
Jan Filips
6e4df02773
Fix formatting in tricks.rst 2022-03-15 15:56:40 +02:00
David Lord
4b63cd8f76
rewrite include statement section 2022-03-12 08:48:32 -08:00
David Lord
a98d482186
clean up faq, move technical discussions 2022-03-12 08:26:06 -08:00
David Lord
9de99f8560
clean up engine comparisons 2022-03-12 07:50:49 -08:00
David Lord
ec50af32e9
add flask and django integration 2022-03-12 07:50:29 -08:00
David Lord
165e972eba
rewrite sandbox docs, add more security discussion 2022-03-12 06:39:31 -08:00
David Lord
186aa82f7e
Merge branch '3.0.x' 2022-03-11 14:38:25 -08:00
David Lord
5962edeb27
Merge branch '2.11.x' into 3.0.x 2022-03-11 14:37:22 -08:00
David Lord
aa3d688a15
Merge branch '2.10.x' into 2.11.x 2022-03-11 14:26:34 -08:00
David Lord
7c3b7ca95c
Merge branch '2.9.x' into 2.10.x 2022-03-11 14:23:40 -08:00
David Lord
70c2d7976b
use current jinja for docs build 2022-03-11 10:07:50 -08:00
David Lord
80e6c4bb56
Merge branch '3.0.x' 2022-02-17 17:04:40 -08:00
Adam Johnson
b81feb86da
Update legacy doctype in docs/tricks 2022-01-26 08:22:05 -08:00
David Lord
b6f50df85b
specify context for translation block 2021-12-26 11:51:54 -07:00
David Lord
896a62135b
Merge branch '3.0.x' 2021-12-26 07:48:45 -07:00