Yaffs site version 1.1
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / tags / inheritance / multiple_dynamic.test
1 --TEST--
2 "extends" tag
3 --TEMPLATE--
4 {% set foo = 1 %}
5 {{ include('parent.twig') }}
6 {{ include('parent.twig') }}
7 {% set foo = 2 %}
8 {{ include('parent.twig') }}
9 --TEMPLATE(parent.twig)--
10 {% extends foo~'_parent.twig' %}{% block content %}{{ parent() }} parent{% endblock %}
11 --TEMPLATE(1_parent.twig)--
12 {% block content %}1{% endblock %}
13 --TEMPLATE(2_parent.twig)--
14 {% block content %}2{% endblock %}
15 --DATA--
16 return array()
17 --EXPECT--
18 1 parent
19
20 1 parent
21
22 2 parent