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:
Static.ServeModule("modulename","public")module:modulenameIn order to add a module to your app, add a line to app.conf:
module.mymodulename = go/import/path/to/module
An empty import path disables the module:
module.mymodulename =
For example, to enable the test runner module:
module.testrunner = github.com/robfig/revel/modules/testrunner