aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/sandbox/not_valid2.test
blob: 3dcfa88c78982d55e18b19f6b372d5bb29934f30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
sandbox tag
--TEMPLATE--
{%- sandbox %}
    {%- include "foo.twig" %}

    {% if 1 %}
        {%- include "foo.twig" %}
    {% endif %}
{%- endsandbox %}
--TEMPLATE(foo.twig)--
foo
--EXCEPTION--
Twig_Error_Syntax: Only "include" tags are allowed within a "sandbox" section in "index.twig" at line 5