Commit Graph

9 Commits

Author SHA1 Message Date
Amy
8da77f9753 add required attribute to blocks
required blocks must be overridden at some point, although not
necessarily by the direct child template
2021-01-29 10:28:39 -05:00
David Lord
2a8515d2e5
apply pyupgrade and f-strings 2020-02-05 08:44:15 -08:00
David Lord
4a59ac9514
Revert "rename imports to jinja"
This reverts commit 1167525b73.
2020-01-26 21:12:52 -08:00
David Lord
1167525b73
rename imports to jinja 2020-01-10 15:30:16 -08:00
David Lord
04c8787155
apply black 2020-01-10 07:54:39 -08:00
Adrian Moennich
cde2a54b87 Compile elif tag to elif instead of else: if
This avoids deep nesting in case of many `{% elif .. %}` blocks (which
would fail during execution) and also deep recursion (which may fail
during compilation)

fixes #759
2017-08-22 23:12:09 +02:00
Adrian Moennich
04b30cdd5c Remove unused/duplicate imports 2017-01-09 00:21:45 +01:00
Armin Ronacher
7ab5ed50d4 Fixed some broken tests 2017-01-03 23:45:29 +01:00
Armin Ronacher
b5d99210f1 Added new-style id tracking code 2017-01-03 23:45:29 +01:00