Modules are packages that can be plugged into an application. They allow sharing of controllers, views, assets, and other code between multiple Revel applications or from third-party sources.
The module should have the same layout as a Revel application. The “hosting” application will merge it in as follows:
In order to add a module to your app, add a line to
module.mymodulename = go/import/path/to/module
An empty import path disables the module:
For example, to enable the test runner module:
module.testrunner = github.com/robfig/revel/modules/testrunner