是否可以使用插件中的布局文件来渲染模板?如果我使用plugin标签,则会从插件中搜索模板。例如。:
render (template: "templateFromProject",
layout: "layoutFromPlugin")
最佳答案
根据docs,您应该使用一个插件属性。
render (template: "templateFromProject", layout: "layoutFromPlugin", plugin: 'thePlugin')
关于grails - 使用插件的布局渲染模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16462042/