如何在Play Framework 2.0中贡献模块? [英] How to contribute modules in Play Framework 2.0?

查看:112
本文介绍了如何在Play Framework 2.0中贡献模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最初的Play Framework 1.x拥有一个优雅且简单的模块管理系统。与Play存储库相结合,这是使用第三方组件快速增强应用程序的好方法。库存。

The original Play Framework 1.x had an elegant and simple module management system. Coupled with the Play repository, it was a great way to quickly enhance an application with third party components & libraries.

使用Play 2.0,情况非常不同。

With Play 2.0, things are very different.

如何贡献所谓的 modules

推荐答案

从邮件列表中引用Guillaume Bort:

Quoting Guillaume Bort from the mailing list:


模块只是标准子项目。

modules are just standard subprojects.

[...]现在一切都已编译,你的模块路由文件必须
为controllers定义自己的路由.Assets.at

[...] now as everything is compiled, your module routes file must define its own route for controllers.Assets.at

顺便说一下,模块之间的路由包含还没有准备好。
很快就能解决这个问题。

By the way, the route inclusion between modules is not ready yet. Will work on that soon.

这篇关于如何在Play Framework 2.0中贡献模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆