projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
41384ac7c4a30d43ef8f80281479f4d1415cbb3e
[yaffs-website]
/
vendor
/
twig
/
twig
/
test
/
Twig
/
Tests
/
Fixtures
/
tags
/
include
/
with_variables.test
1
--TEST--
2
"include" tag accept variables
3
--TEMPLATE--
4
{% include "foo.twig" with {'foo': 'bar'} %}
5
{% include "foo.twig" with vars %}
6
--TEMPLATE(foo.twig)--
7
{{ foo }}
8
--DATA--
9
return array('vars' => array('foo' => 'bar'))
10
--EXPECT--
11
bar
12
bar