【问题标题】:Render template using layout from plugin使用插件中的布局渲染模板
【发布时间】:2013-05-09 12:42:31
【问题描述】:

是否可以使用插件中的布局文件来呈现模板?如果我使用插件标签,则从插件中搜索模板。例如:

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

【问题讨论】:

    标签: grails layout gsp


    【解决方案1】:

    根据docs,您应该使用一个插件属性。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-10-17
      • 1970-01-01
      • 2011-04-28
      • 2015-10-06
      • 2012-12-31
      • 1970-01-01
      • 2016-04-03
      • 1970-01-01
      相关资源
      最近更新 更多