How use wro4j in play framework 2.1

我的未来我决定 提交于 2020-01-01 09:19:09

问题



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?

regards


回答1:


wro4j process resources either at build time or at runtime.

I'm not aware of any Play2 integration/plugin/sample yet.

You can use the wro4j SBT plugin available here: https://github.com/BowlingX/xsbt-wro4j-plugin/

Or you could write a wro4j controller that process resources on the fly in DEV mode and cache them in PROD mode.



来源:https://stackoverflow.com/questions/14959594/how-use-wro4j-in-play-framework-2-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!