Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Revel module summary


May 15, 2021 Revel


Table of contents


The Revel module describes

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:

  1. All templates for module/app/views are added to the template loader's search path
  2. All controllers of module/app/controllers will be treated as controllers in your application.
  3. Resource files are Static.ServeModule("modulename","public")
  4. Routes module:modulename

Enable a module

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