Skip to content

Instantly share code, notes, and snippets.

@nborrmann
Created August 31, 2014 16:11
Show Gist options
  • Select an option

  • Save nborrmann/4dfabffcf2e7d967be66 to your computer and use it in GitHub Desktop.

Select an option

Save nborrmann/4dfabffcf2e7d967be66 to your computer and use it in GitHub Desktop.

Revisions

  1. @Niborr Niborr created this gist Aug 31, 2014.
    4 changes: 4 additions & 0 deletions PublicController.groovy
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    def output = new StringWriter()
    def template = groovyPagesTemplateEngine.createTemplate(cmsSite.content, 'blank.gsp')
    template.make().writeTo(output)
    output.toString()