aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/test/resources/gobbling/foreach_empty.vtl
diff options
context:
space:
mode:
Diffstat (limited to 'velocity-engine-core/src/test/resources/gobbling/foreach_empty.vtl')
-rw-r--r--velocity-engine-core/src/test/resources/gobbling/foreach_empty.vtl26
1 files changed, 26 insertions, 0 deletions
diff --git a/velocity-engine-core/src/test/resources/gobbling/foreach_empty.vtl b/velocity-engine-core/src/test/resources/gobbling/foreach_empty.vtl
new file mode 100644
index 00000000..d2c81d17
--- /dev/null
+++ b/velocity-engine-core/src/test/resources/gobbling/foreach_empty.vtl
@@ -0,0 +1,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>
+