mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 18:06:46 +00:00
11 lines
241 B
Plaintext
11 lines
241 B
Plaintext
--TEST--
|
|
"include" function returns Markup so an assigned result is not re-escaped
|
|
--TEMPLATE--
|
|
{% set assigned = include("foo.twig") %}[{{ assigned }}]
|
|
--TEMPLATE(foo.twig)--
|
|
{{- "a & b"|escape -}}
|
|
--DATA--
|
|
return []
|
|
--EXPECT--
|
|
[a & b]
|