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