The rendertemplate function can be used to render template contents to a String.
rendertemplate
rendertemplate(TemplateCall):String
Example:
define test(a:Int){ output(a) "!" } function showContent(i:Int){ log(rendertemplate(test(i))); }