mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
Example about how to rename several blocks
It was unclear to me how to rename more than 1 imported block. I had to look into the source code to find that, so I add it to the documentation.
This commit is contained in:
committed by
Fabien Potencier
parent
7823014351
commit
8af1355e43
+1
-1
@@ -74,7 +74,7 @@ is ignored. To avoid name conflicts, you can rename imported blocks:
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% use "blocks.html" with sidebar as base_sidebar %}
|
||||
{% use "blocks.html" with sidebar as base_sidebar, title as base_title %}
|
||||
|
||||
{% block sidebar %}{% endblock %}
|
||||
{% block title %}{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user