Chris
Chris

Reputation: 8099

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") 

Upvotes: 0

Views: 910

Answers (1)

Gregg
Gregg

Reputation: 35904

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

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

Upvotes: 1

Related Questions