block
Found a typo or an error? Want to improve this document? Edit it.
Need support or have a technical question? Post to the user mailing-list.
When a template uses inheritance and if you want to print a block multiple times, use the block function:
1 2 3 4 5
<title>{% block title %}{% endblock %}</title> <h1>{{ block('title') }}</h1> {% block body %}{% endblock %}
See also
extends, parent