aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/test/resources/gobbling/foreach_smart.vtl
blob: 26c0894f539a286cb7790d0b9a2d28a0fc150a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<table>
  <tbody>
#foreach($row in [1..2])
    <tr>
  #foreach($col in [1..2])
      <td>
    #if( $row == 1 && $col == 1)
        first cell
    #elseif( $row == 2 && $coll == 2)
        last cell
    #else
        middle cell
    #end
      </td>
  #end
    </tr>
#end
  </tbody>
</table>