<%! def div(text): return "
" + text + "
" %> Here's a div: ${ "text" | div }