jvanzyl 00/12/19 00:22:38
Modified: test test.properties
Added: test/templates literal.vm
test/templates/compare literal.cmp
Log:
- adding test for the new #literal() directive.
Revision Changes Path
1.18 +1 -0 jakarta-velocity/test/test.properties
Index: test.properties
===================================================================
RCS file: /home/cvs/jakarta-velocity/test/test.properties,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- test.properties 2000/12/15 17:19:36 1.17
+++ test.properties 2000/12/19 08:22:37 1.18
@@ -30,3 +30,4 @@
test.template.28 = interpolation
test.template.29 = vm_test1
test.template.30 = map
+test.template.31 = literal
1.1 jakarta-velocity/test/templates/literal.vm
Index: literal.vm
===================================================================
#*
@test literal.vm
This template is used for Velocity regression testing.
If you alter this template make sure you change the
corresponding comparison file so that the regression
test doesn't fail incorrectly.
*#
#literal()
#foreach ($woogie in $boogie)
nothing will happen to $woogie
#end
#if($skin)
$!data.setLayoutTemplate($!skin.getLayout())
$!page.setCss($!skin.getCss())
#end
#end
1.1 jakarta-velocity/test/templates/compare/literal.cmp
Index: literal.cmp
===================================================================
#foreach ($woogie in $boogie)
nothing will happen to $woogie
#end
#if($skin)
$!data.setLayoutTemplate($!skin.getLayout())
$!page.setCss($!skin.getCss())
#end