问题描述
there is a way to include wro4j http://code.google.com/p/wro4j/in java play framework 2.1?
i need to compile hogan.js templates and do much more without reinvent the route.
maybe i should use interceptors (@Before, @After, @Finally) and creating a class that extend Application?
致谢
推荐答案
wro4j在构建时或运行时处理资源.
wro4j process resources either at build time or at runtime.
我还不知道任何Play2集成/插件/示例.
I'm not aware of any Play2 integration/plugin/sample yet.
您可以在此处使用wro4j SBT插件: https://github.com/BowlingX /xsbt-wro4j-plugin/
You can use the wro4j SBT plugin available here: https://github.com/BowlingX/xsbt-wro4j-plugin/
或者您可以编写一个wro4j控制器,以DEV模式即时处理资源并以PROD模式缓存它们.
Or you could write a wro4j controller that process resources on the fly in DEV mode and cache them in PROD mode.
这篇关于如何在Play Framework 2.1中使用wro4j的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!