如何在grails项目之间共享通用的css和其他资源?
我正在开发一个基于 grails 的 Web 应用程序,该应用程序将由几个不同的 grails 项目组成,每个项目都由一个单独的团队开发,最终将统一在一个公共“门户”下。因此,它们需要具有相同的外观和感觉,至少在某种程度上。
有没有一种“幸福”的方式在项目之间共享这样的资源?也许使用 grails 插件架构的东西?仅创建一个单独的轻量级项目,只包含 css 和任何共享资源是否有意义?你们其他人是如何处理在不同 Grails 项目之间共享内容的?
I'm working on a grails-based web application that will be composed of a couple of different grails projects, each developed by a separate team, which will eventually all be unified under a common "portal." So they need to have the same look and feel, at least to some degree.
Is there a "blessed" way to share resources like this among projects? Something using the grails plugin architecture maybe? Would it make sense to just create a separate lightweight project containing nothing but the css and any shared resources? How have the rest of you handled sharing things between different grails projects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议你使用一个插件。
让您自己从 jQuery 插件中获得灵感:http://grails.org/plugin/jquery
I suggest that you use a plugin.
Let your self be inspired from the jQuery plugin: http://grails.org/plugin/jquery
对于那些用谷歌搜索这个答案并对如何共享域模型和其他东西感兴趣的人来说,这是一个很好的例子 此处。
For those who googled this answer and interested how to share Domain models and other stuff it is very good example here.