1 2 3 4 5 6 7 8 9 10 11
--TEST-- sandbox tag --TEMPLATE-- {%- sandbox %} {%- include "foo.twig" %} a {%- endsandbox %} --TEMPLATE(foo.twig)-- foo --EXCEPTION-- Twig_Error_Syntax: Only "include" tags are allowed within a "sandbox" section in "index.twig" at line 4