Fix Groovy Markup Template example

* use a Helper Function instead of wrapping it with a MethodClosure