]> git.ipfire.org Git - thirdparty/jinja.git/commit
Fix parsing of the {% from %} block
authorKevin Brown <kevin@kevin-brown.com>
Fri, 15 May 2020 22:06:31 +0000 (18:06 -0400)
committerKevin Brown <kevin@kevin-brown.com>
Fri, 15 May 2020 22:06:31 +0000 (18:06 -0400)
commitb7c80abdace082e7f04cec8720c3e7a2b4fac813
tree02fcacebe66cb1ac32ee2860d7c8fb77111f333c
parent9bb793c19011c4ca898fac7e82d81dba5e30e117
Fix parsing of the {% from %} block

There was an issue in the parser before where it was not properly
hanlding variable tuples within the parameters. Additionally, it was
not validating that "import" came after the template name, or that
when it did that any variables were actually specified. Both of those
are now being enforced properly.
src/jinja2/new_parser.py