]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/tags/sandbox/not_valid2.test
twig implementation
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / tags / sandbox / not_valid2.test
1 --TEST--
2 sandbox tag
3 --TEMPLATE--
4 {%- sandbox %}
5 {%- include "foo.twig" %}
6
7 {% if 1 %}
8 {%- include "foo.twig" %}
9 {% endif %}
10 {%- endsandbox %}
11 --TEMPLATE(foo.twig)--
12 foo
13 --EXCEPTION--
14 Twig_Error_Syntax: Only "include" tags are allowed within a "sandbox" section in "index.twig" at line 5