Skip to content

Instantly share code, notes, and snippets.

@nborrmann
nborrmann / PublicController.groovy
Created August 31, 2014 16:11
Render String as gsp
View PublicController.groovy
def output = new StringWriter()
def template = groovyPagesTemplateEngine.createTemplate(cmsSite.content, 'blank.gsp')
template.make().writeTo(output)
output.toString()