Files
Twig/tests/Fixtures/functions/include/sandbox_disabling.test
2019-06-30 14:56:12 +02:00

17 lines
250 B
Plaintext

--TEST--
"include" tag sandboxed
--TEMPLATE--
{{ include("foo.twig", sandboxed = true) }}
{{ include("bar.twig") }}
--TEMPLATE(foo.twig)--
foo
--TEMPLATE(bar.twig)--
{{ foo|e }}
--DATA--
return ['foo' => 'bar<br />']
--EXPECT--
foo
bar&lt;br /&gt;