5 This template is used for Velocity regression testing.
6 If you alter this template make sure you change the
7 corresponding comparison file so that the regression
8 test doesn't fail incorrectly.
12 --Foreach with an array. 2 blank lines follow
14 ##foreach ($element in $provider.Array)
17 #foreach ($element in $stringarray)
19 <td>This is $element and it is the $velocityCount item</td>
24 --Foreach with a null array. 1 blank line follows
27 #foreach ($element in $woogiefoogie)
29 <td>This is $element and it is the $velocityCount item</td>
34 -- And when we declare the array in-template :
36 #set($colors=["red","blue","green"])
38 #foreach( $color in $colors )
44 #set($foo2 = [ $bar ])
47 #set($foo2 = [ $bar] )
48 #foreach( $i in $foo )