aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/test/resources/gobbling/foreach_empty.vtl
blob: d2c81d1768e56e4f3d56be910312fe20a2846dc2 (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
  #foreach( $i in [])
    $i
  #else
    empty
  #end

~~~~ #foreach($i in []) #else empty #end ~~~~

<table>
  <tbody>
#foreach($row in [1..1])
    <tr>
  #foreach($col in [])
      <td>
        ghost
      </td>
  #else
      <td>
        nobody
      </td>
  #end
    </tr>
#end
  </tbody>
</table>