5 This template is used for Velocity regression testing.
6 If you alter this template make sure you change the
7 corresponding comparison file so that the regression
8 test doesn't fail incorrectly.
11 #set( $pedantic = "pedantic")
13 This is a test of the new #if($pedantic)$pedantic#end mode.
15 There are a few things you can do in #if($foobar) GOOGLE! #else$pedantic#end mode.
17 Like get the spacing between things #foreach($a in $stringarray)$a#end to be really, really tight.
19 Further, it now binds any \n to the control structures, taking them out of the output.
20 The hope that this is What You Expect.
29 should come out looking like
35 But pay attention to what follows the \#end statement :
37 1) First, follow with 'stuff' (not sure why you want to do this... but anway...)
52 2) Whitespace will be eaten if there is a following newline
69 1) respect spaces in the block
70 >#foreach($a in $stringarray)$a#end<
71 >#foreach($a in $stringarray) $a#end<
72 >#foreach($a in $stringarray)$a #end<
73 >#foreach($a in $stringarray) $a #end<
75 2) set statement has no output, incuding preceeding whitespace
76 #foreach($a in $stringarray)
81 public void foo( String lala )
83 #foreach($a in $stringarray)
85 System.out.println("$b");
89 public void foo( String lala )
91 #foreach($a in $stringarray)
93 System.out.println("$b");
97 Inline set statement :
99 Here are the prices :#set( $arr = ["$10.24","$15.32","$12.15"] ) #foreach($a in $arr) $a #end