block
When a template uses inheritance and if you want to print a block multiple times, use the block function:
<title>{% block title %}{% endblock %}</title> <h1>{{ block('title') }}</h1> {% block body %}{% endblock %}
See also
extends, parent
attribute
constant
Enter search terms or a module, class or function name.