aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/test/resources/templates/compare/foreach-array.cmp
blob: 8f325f34dd0b9f3e2412c401e53a00676a48ffdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33


--Foreach with an array. 2 blank lines follow


<table>
    <tr>
        <td>This is first element and it is the 1 item</td>
    </tr>        
    <tr>
        <td>This is second element and it is the 2 item</td>
    </tr>        
</table>

--Foreach with a null array.  1 blank line follows

<table>
</table>

-- And when we declare the array in-template :

Choose among :
	red
	blue
	green

 $foo : a

 $foo2 : bar

-- Empty array
  empty