jinja/docs
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
..
_static modernize docs config, use pallets-sphinx-themes 2019-07-26 11:41:08 -07:00
examples update project files (#5457) 2024-04-23 09:28:57 -07:00
api.rst Fix typo on filter name 2024-12-18 08:52:06 -08:00
changes.rst docs rename changelog to changes, add license 2021-02-24 09:46:54 -08:00
conf.py add ghsa links 2024-05-02 08:42:59 -07:00
extensions.rst Improve documentation for initializing the i18n extension 2024-09-10 18:42:07 +03:00
faq.rst Add link to MarkupSafe in FAQ 2024-12-18 08:27:51 -08:00
index.rst docs rename changelog to changes, add license 2021-02-24 09:46:54 -08:00
integration.rst Update pylons url in documentation (#1715) 2022-09-02 06:11:15 -07:00
intro.rst drop Python 3.6 2021-11-08 08:07:29 -08:00
license.rst update project files (#5457) 2024-04-23 09:28:57 -07:00
make.bat replace http with https in docs 2021-08-28 09:12:38 -04:00
Makefile modernize docs config, use pallets-sphinx-themes 2019-07-26 11:41:08 -07:00
nativetypes.rst document SandboxedNativeEnvironment pattern 2024-12-20 07:57:11 -08:00
sandbox.rst rewrite sandbox docs, add more security discussion 2022-03-12 06:39:31 -08:00
switching.rst Add in docs/switching/#loops little improvement for consistency 2022-07-22 17:47:56 +02:00
templates.rst Add support for namespaces in tuple assignment 2024-12-20 14:09:40 -08:00
tricks.rst change "per default" to "by default" 2024-12-18 09:33:31 -08:00