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

查看:25
本文介绍了如何在 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.

如何贡献所谓的模块"?

推荐答案

从邮件列表中引用 Guillaume Bort:

Quoting Guillaume Bort from the mailing list:

模块只是标准的子项目.

modules are just standard subprojects.

[...] 现在一切都被编译了,你的模块路由文件必须为控制器定义自己的路由.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天全站免登陆