]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/functions/template_from_string.test
twig implementation
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / functions / template_from_string.test
1 --TEST--
2 "template_from_string" function
3 --TEMPLATE--
4 {% include template_from_string(template) %}
5
6 {% include template_from_string("Hello {{ name }}") %}
7 --DATA--
8 return array('name' => 'Fabien', 'template' => "Hello {{ name }}")
9 --EXPECT--
10 Hello Fabien
11 Hello Fabien