`extends defLayout *{ define a method that return a String }* `def foo2(String p) hi $p! ` `def foo `String s = "hi there"; hello $foo2(s) ` *{ the old syntax of def }* #{def bar} `String s = "hi2"; hi $s! #{/} #{dummyTag get("bar")/} *{ can call it directly }* $foo()