tera: Allow block to be used multiple times
It should be possible to use a block multiple times in the template. This is possible in jinja2, because a block can be accessed through the special self variable as described for example here:
https://stackoverflow.com/questions/20929241/how-to-repeat-a-block-in-a-jinja2-template
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 10
- Comments: 22 (11 by maintainers)
Thanks @LunNova , I finally handle all these cases on base.html
Probably the most common use case is for the page title as seen in the stackoverflow thread. Of course one can easily work around this, but I thought it would be nice, if I (and others) don’t have to.