]> git.ipfire.org Git - thirdparty/jinja.git/commit
Allow variable identifiers to be conditionals
authorKevin <kevin@kevin-brown.com>
Tue, 12 May 2020 01:08:06 +0000 (21:08 -0400)
committerKevin <kevin@kevin-brown.com>
Tue, 12 May 2020 01:08:06 +0000 (21:08 -0400)
commit64d169038b88f4ed2cff176873d4b3c26cdaa765
tree8657c89495add36e7e9629cfb268e678e84f8db9
parenta877716f537e6b0bcbde543345442ace9c92ac3f
Allow variable identifiers to be conditionals

This aligns with the Python behaviour and pre-existing Jinja behaviour
where a variable expression can be used as a test for a conditional.
This was necessary to allow variable identifiers to be used in places
which was expecting a possible conditional expression, like in a if/else
expression.
grammar.ebnf