【问题标题】:Is it possible to use the Rythm Template Engine with Grails?是否可以将 Rythm 模板引擎与 Grails 一起使用?
【发布时间】:2014-04-15 19:04:14
【问题描述】:

是否可以将 Rythm 模板引擎与 Grails 一起使用?或者就此而言,是否可以使用 Grails 配置不同的模板引擎?通过在 context.xml 中添加不同的 bean,Spring MVC 让您可以轻松地做到这一点。

【问题讨论】:

  • 我确信这是可能的(因为 Grails 是基于 Spring 构建的)。您也可以查看 freemarker 插件的源代码以了解它是如何完成的。 grails.org/plugin/freemarker

标签: templates spring-mvc grails groovy template-engine


【解决方案1】:

与Spring相同的机制,指定不同的ViewResolver bean

【讨论】:

    猜你喜欢
    • 2015-08-02
    • 1970-01-01
    • 2013-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多