I did't find it written explicitly in the docs.
Are the naming rules the same as with Python variables?
(eg: {{ a_variable'like_that' }}
doesn't work for example)
I did't find it written explicitly in the docs.
Are the naming rules the same as with Python variables?
(eg: {{ a_variable'like_that' }}
doesn't work for example)
Jinja's naming convention generally matches your python interpreter's identifiers. So it also depends on your Python version (2.x: like [a-zA-Z_][a-zA-Z0-9_]*
)
(source: #pocoo on irc.freenode.net)