mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 09:56:32 +00:00
11 lines
233 B
Plaintext
11 lines
233 B
Plaintext
--TEST--
|
|
"include_only" function does not give access to the current context
|
|
--TEMPLATE--
|
|
{{ include_only("foo.twig") }}
|
|
--TEMPLATE(foo.twig)--
|
|
[{{ foo|default('undefined') }}]
|
|
--DATA--
|
|
return ['foo' => 'bar']
|
|
--EXPECT--
|
|
[undefined]
|