mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-06 23:48:50 +00:00
18 lines
212 B
Plaintext
18 lines
212 B
Plaintext
--TEST--
|
|
"include" function allows expressions for the template to include
|
|
--TEMPLATE--
|
|
FOO
|
|
{{ include(foo) }}
|
|
|
|
BAR
|
|
--TEMPLATE(foo.twig)--
|
|
FOOBAR
|
|
--DATA--
|
|
return ['foo' => 'foo.twig']
|
|
--EXPECT--
|
|
FOO
|
|
|
|
FOOBAR
|
|
|
|
BAR
|