1#macro(test1 $p) 2 #test2($p) 3#end 4 5#macro(test1b $p) 6 #foreach($i in $foo) 7 #test2($p) 8 #end 9#end 10 11#macro(test2 $p) 12 $!p 13#end 14 15#macro(test3 $p) 16 #test1($p) 17#end 18 19#macro(test4 $p) 20 #test2($p) 21#end 22 23#test1("foo") 24#test2("foo") 25#test3("foo") 26#test4("foo") 27 28#test1() 29#test2() 30#test3() 31#test4() 32 33#test1("foo", "bar") 34#test2("foo", "bar") 35#test3("foo", "bar") 36#test4("foo", "bar") 37 38#@test1("foo", "bar")#end 39#@test1("foo")#end 40#@test1()#end 41