diff options
Diffstat (limited to 'velocity-engine-core/src/test/resources/templates/compare/foreach-array.cmp')
-rw-r--r-- | velocity-engine-core/src/test/resources/templates/compare/foreach-array.cmp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/velocity-engine-core/src/test/resources/templates/compare/foreach-array.cmp b/velocity-engine-core/src/test/resources/templates/compare/foreach-array.cmp new file mode 100644 index 00000000..8f325f34 --- /dev/null +++ b/velocity-engine-core/src/test/resources/templates/compare/foreach-array.cmp @@ -0,0 +1,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 + |