1#* 2 3@test block.vm 4 5This template is used for Velocity regression testing. 6If you alter this template make sure you change the 7corresponding comparison file so that the regression 8test doesn't fail incorrectly. 9 10*# 11First test : spacing between stuff. Note that spacing preceeding the directives counts! 12One blank line follows 13 14#set($foo = false) 15#if ($foo) 16 this is true 17#elseif ($bar) 18 this is false 19#elseif (true) 20 this should be followed by two blank lines 21#end 22 23 24#if (true) 25 this is the if statement. (followed by two blank lines) 26 27 #if (true) 28 29 this is great (followed by a blank line, 4 spaces on a line,and 2 more, yes there should be one after the 4 spaces) 30 31 #elseif (false) 32 this is also great. 33 #end 34 35#elseif (true) 36 this is the first elseif. 37#elseif (false) 38 this is the second elseif. 39#else 40 this is the else statement 41#end 42 43-- Second Test : no spacing between anything (1 blank line follows) 44 45#set($foo = false) 46#if ($foo) 47 this is true 48#elseif ($bar) 49 this is false 50#elseif (true) 51 this 52#end 53#if (true) 54 this is the if statement. 55 #if (true) 56 this is great (line w/ 4 spaces follows (from in front of the \#end) + another blank line) 57 #elseif (false) 58 this is also great. 59 #end 60#elseif (true) 61 this is the first elseif. 62#elseif (false) 63 this is the second elseif. 64#else 65 this is the else statement 66#end 67 68------------ 69#if(false) 70False 71#else 72True 73#end 74----------- 75 76-- Third Test : tight tight tight. 77-- one blank line follows 78 79blargh #if(true)This follows blargh#end 80 81blargh#if(true)This immedately follows blargh with a following newline 82#end 83 84-- Fourth Test : different kind of tight. blank line follows 85 86blargh 87#if(true) 88blargh2 89#end 90blargh3 91