Search code examples
grailslayoutgsp

Render template using layout from plugin


Is it possible to render a template using a layout file from a plugin? If I use the plugin tag, the template is searched form the plugin. E.g.:

render (template: "templateFromProject", 
    layout: "layoutFromPlugin") 

Solution

  • According to the docs, there is a plugin attribute you should be using.

    render (template: "templateFromProject", layout: "layoutFromPlugin", plugin: 'thePlugin')