May 15, 2021 Revel
Modules are packages that can be integrated into Thevel program. Revel allows multiple Revel programs (or third-party code) to share controllers, templates, resources, and other code.
The Chinese the module should be consistent with the Level application file structure. Managed applications merge them as follows:
Static.ServeModule("modulename","public")
module:modulename
In order to add modules to your application, you need to add a line of configuration to
app.conf
module.mymodulename = go/import/path/to/module
If the import path is empty, the module is disabled:
module.mymodulename =
Raise a chestnut and enable the test run module:
module.testrunner = github.com/revel/revel/modules/testrunner