projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b2ace940e955812440cb474bd37eb66276bb64d3
[yaffs-website]
/
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