1#* 2 3@test escape.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*# 11 12\A 13 14\#set($woo = "bar") 15#set($woo = "bar") 16 17\$woo => $woo 18 19The following should print 'as is' : 20$f\oo 21\a 22"\r" 23 24Now, test the built in directives. Note that $foo isn't in the context : 25\#set($foo = $foo + 1) 26\#set(\$foo = $foo + 1) 27\#if($foo) 28\#if ( $foo ) 29\#else 30\#end 31\#elseif( 32 33Now, a reference not in the context: 34\$foo -> $foo 35\#if($foo) 36\#if(\$foo) 37 38Put it in : 39#set($foo = 1) 40\$foo -> $foo 41\#if($foo) 42\#if(\$foo) 43 44This isn't in the context, so we get the full monty : 45 \$woobie.blagh() 46 47The following two are references : 48 \$provider.Title = $provider.Title 49 \$provider.getTitle() = $provider.getTitle() 50 51Now, pluggable directives: 52 53\#notadirective 54\#foreach 55 56