简体   繁体   English

Grails + Struts Tiles

[英]Grails + Struts Tiles

Have someone there any experience with integrating Tiles into Grails (instead of SiteMesh)? 有人有任何将Tiles集成到Grails (而不是SiteMesh)的经验吗?

I found a few articles like this: http://devdevdev.wordpress.com/2009/01/ and as i understand at least one year ago there was no way to use Tiles inside Grails. 我发现了一些这样的文章: http//devdevdev.wordpress.com/2009/01/并且至少在一年前我了解到没有办法在Grails中使用Tiles。 Maybe something changed last time? 也许上次改变了什么? Has anyone tried to do it? 有没有人试过呢?

ps. PS。 or maybe there are exists an another plugin for grails, that allows me to use Composite View design pattern ? 或者可能存在另一个grails插件,允许我使用Composite View设计模式

This is a list of default plugins in new grails project. 这是新grails项目中的默认插件列表。 It seems that SiteMash is not a part of grails as a plugin. 似乎SiteMash不是grails作为插件的一部分。 So it will be hard to replace with Tiles. 因此很难用Tiles替换。

Default plugin list: 默认插件列表:

  • i18n - 1.3.3 i18n - 1.3.3
  • filters - 1.3.3 过滤器 - 1.3.3
  • logging - 1.3.3 记录 - 1.3.3
  • core - 1.3.3 核心 - 1.3.3
  • tomcat - 1.3.3 tomcat - 1.3.3
  • dataSource - 1.3.3 dataSource - 1.3.3
  • groovyPages - 1.3.3 groovyPages - 1.3.3
  • urlMappings - 1.3.3 urlMappings - 1.3.3
  • controllers - 1.3.3 控制器 - 1.3.3
  • servlets - 1.3.3 servlets - 1.3.3
  • codecs - 1.3.3 编解码器 - 1.3.3
  • scaffolding - 1.3.3 脚手架 - 1.3.3
  • domainClass - 1.3.3 domainClass - 1.3.3
  • mimeTypes - 1.3.3 mimeTypes - 1.3.3
  • hibernate - 1.3.3 休眠 - 1.3.3
  • converters - 1.3.3 转换器 - 1.3.3
  • services - 1.3.3 服务 - 1.3.3
  • validation - 1.3.3 验证 - 1.3.3

It's very difficult to deviate from standard templating in Grails. 在Grails中偏离标准模板是非常困难的。 We tried to deviate to xhtml templating in grails 1.1.1 but in initial 1 hour I realized it will be tough. 我们试图在grails 1.1.1中偏离xhtml模板,但在最初的1小时内我意识到这将是艰难的。 I am not sure if there is some easy options/plugin in grails 1.3.3 我不确定grails 1.3.3中是否有一些简单的选项/插件

从来没有尝试,但django模板很棒看到DjangoTemplates插件http://www.grails.org/DjangoTemplates+Plugin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM