📄 velocimacro2.vm
字号:
#**@test velocimacro2.vmThis template is used for Velocity regression testing.If you alter this template make sure you change thecorresponding comparison file so that the regressiontest doesn't fail incorrectly.*##macro( foo $a ) Hello from foo : $a#end#macro( foo2 $a ) Hello from foo2 : $a#end#macro( foo_two $a ) Hello from foo_two : $a#end#foo( "hi" )#foo2( "hi" )#foo_two( "hi" )#foo( $notincontext )#foo( $notincontext.getThing() )#macro( tester $a ) #if($a) $a : yes #else $a : no #end#end#### test to see if we can print these## as schmoo###tester( $notincontext )#tester( $notincontext.woogie() )#set($foo = "bar")#tester($foo)#foo2( ${foo} )#macro( poundthis $truth ) #if ($truth ) <td align=center class=v10><b>#</b></td> <td align=center class=v10><b> # </b></td> <td align=center class=v10><b>\#</b></td> #end#end#poundthis( true )#### test for bug reported when stringlit changed to on-init parsing###macro( blorp $bar ) $bar #end#macro( schlorp $i )#blorp( "hi $i" ) #end#schlorp("victor")#### test all directive arg types###macro(dirarg $a)>$a<#end#set($ref = 1)#dirarg(1)#dirarg(true)#dirarg(false)#dirarg("hello")#dirarg('hello')#dirarg($ref)#dirarg([1..10])#dirarg(['a','b',$ref])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -