]> git.ipfire.org Git - thirdparty/jinja.git/commit
Add proper parsing for {% for %} parameters
authorKevin Brown <kevin@kevin-brown.com>
Sat, 16 May 2020 19:55:56 +0000 (15:55 -0400)
committerKevin Brown <kevin@kevin-brown.com>
Sat, 16 May 2020 21:08:09 +0000 (17:08 -0400)
commita3aa821a5f3b3cffd7a166ead8794279d8cc645c
treecc251ff998071fcf68b73963c53f96c41013c097
parent140297e5473b217bda3ee2ff5027bff65fab8982
Add proper parsing for {% for %} parameters

Previously a lot of the parsing was done through implicit variable
tuples, but that ended up causing a lot of special cases because we
were only allowing variables in those tuples. Now that we are going
to move towards having tuples be handled consitently, whether they
are identifier tuples or tuple literals, the logic for handling the
`{% for %}` block needed to be cleaned up.
src/jinja2/new_parser.py