geirm 00/11/11 22:43:20
Added: test/templates parse.vm parse1.vm parse2.vm
Log:
New testbed templates for testing #parse()
Revision Changes Path
1.1 jakarta-velocity/test/templates/parse.vm
Index: parse.vm
===================================================================
#*
@test parse.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.
*#
Test the \#parse pluggable directive
Now calling parse1.vm :
---
#parse("parse1.vm")
---
all done!
1.1 jakarta-velocity/test/templates/parse1.vm
Index: parse1.vm
===================================================================
#*
@test parse1.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.
*#
This is content from parse1.vm
#foreach($a in $stringarray )
Hello $a.
#end
Now using a reference to get the next one :
#set $foo = "parse2.vm"
--
#parse($foo)
--
done with parse1.vm
1.1 jakarta-velocity/test/templates/parse2.vm
Index: parse2.vm
===================================================================
#*
@test parse2.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.
*#
This is parse2.vm.
#if (true)
This is from a true \#if.
#end