mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
added some tests
git-svn-id: http://svn.twig-project.org/trunk@191 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
--TEST--
|
||||
"include" tag accept variables
|
||||
--TEMPLATE--
|
||||
{% include "foo.twig" with ['foo': 'bar'] %}
|
||||
{% include "foo.twig" with vars %}
|
||||
--TEMPLATE(foo.twig)--
|
||||
{{ foo }}
|
||||
--DATA--
|
||||
return array('vars' => array('foo' => 'bar'))
|
||||
--EXPECT--
|
||||
bar
|
||||
bar
|
||||
Reference in New Issue
Block a user