We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf6b7ae commit 45e167aCopy full SHA for 45e167a
tests/Fixtures/tags/inheritance/conditional_block_nested.test
@@ -0,0 +1,38 @@
1
+--TEST--
2
+conditional "block" tag with "extends" tag (nested)
3
+--TEMPLATE--
4
+{% extends "layout.twig" %}
5
+
6
+{% block content_base %}
7
+ {{ parent() -}}
8
+ index
9
+{% endblock %}
10
11
+{% block content_layout -%}
12
13
+ nested_index
14
15
+--TEMPLATE(layout.twig)--
16
+{% extends "base.twig" %}
17
18
19
20
+ layout
21
+ {% if true -%}
22
+ {% block content_layout -%}
23
+ nested_layout
24
+ {% endblock -%}
25
+ {% endif %}
26
27
+--TEMPLATE(base.twig)--
28
29
+ base
30
31
+--DATA--
32
+return []
33
+--EXPECT--
34
+base
35
+layout
36
37
38
+index
0 commit comments