]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/with_variables.test
gitignore vendor
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / functions / include / with_variables.test
1 --TEST--
2 "include" function accept variables
3 --TEMPLATE--
4 {{ include("foo.twig", {'foo': 'bar'}) }}
5 {{- include("foo.twig", vars) }}
6 --TEMPLATE(foo.twig)--
7 {{ foo }}
8 --DATA--
9 return array('vars' => array('foo' => 'bar'))
10 --EXPECT--
11 bar
12 bar