]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/only.test
twig implementation
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / tags / include / only.test
1 --TEST--
2 "include" tag accept variables and only
3 --TEMPLATE--
4 {% include "foo.twig" %}
5 {% include "foo.twig" only %}
6 {% include "foo.twig" with {'foo1': 'bar'} %}
7 {% include "foo.twig" with {'foo1': 'bar'} only %}
8 --TEMPLATE(foo.twig)--
9 {% for k, v in _context %}{{ k }},{% endfor %}
10 --DATA--
11 return array('foo' => 'bar')
12 --EXPECT--
13 foo,global,_parent,
14 global,_parent,
15 foo,global,foo1,_parent,
16 foo1,global,_parent,