summaryrefslogtreecommitdiffstats
path: root/t/data
diff options
context:
space:
mode:
authormascip (Pierre Masci) <piemas25+git@gmail.com>2013-12-09 13:22:21 +0000
committerPierre Masci <mascip@gmail.com>2014-03-19 14:19:16 +0000
commitbb3ff3e1f924d530b3bfdf192849b5ac1b9aa5b2 (patch)
treee5dc5c2c861027aaccae415f4c9aa5bea896bcc3 /t/data
parent1f06a7f7efbef91939335b070c279ede002af32f (diff)
downloadox-view-tt-bb3ff3e1f924d530b3bfdf192849b5ac1b9aa5b2.tar.gz
ox-view-tt-bb3ff3e1f924d530b3bfdf192849b5ac1b9aa5b2.zip
template_params dependency, to send parameters to the template
Diffstat (limited to 't/data')
-rw-r--r--t/data/array_parameter/templates/index.tt8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/data/array_parameter/templates/index.tt b/t/data/array_parameter/templates/index.tt
new file mode 100644
index 0000000..5454d04
--- /dev/null
+++ b/t/data/array_parameter/templates/index.tt
@@ -0,0 +1,8 @@
+<b>[% content %]</b>
+<p>[% some_scalar %]</p>
+[% FOREACH elem IN some_array %]
+<span>[% elem %]</span>
+[% END %]
+[% FOREACH elem IN other_array %]
+<span>[% elem %]</span>
+[% END %]