`extends defLayout
check 1
*{ define a method that return a String }* `def foo2(String p)hi $p!,
from $request.action
OK you can call a tag:
`tag dummyTag p `check 2
`def foo `String s = "hi there";foo hello $foo2(s)
`check 3
*{ the old syntax of def }* #{def bar} `String s = "hi2";bar hi $s!
#{/}check 4
#{dummyTag get("bar")/} *{ can call it directly }*check 5
$foo()check 6
%{ String a = ""; a += "bssdfsdf"; }% ` if (a.length() > 0) { ` p(a); ` }