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:
Pierre-Yves Guerder
2015-06-29 17:21:19 +02:00
committed by Fabien Potencier
parent 7823014351
commit 8af1355e43
+1 -1
View File
@@ -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 %}