The interactive file manager requires Javascript. Please enable it or use sftp or scp.
You may still browse the files here.

Download Latest Version Revel v1.1.0.zip (218.6 kB)
Email in envelope

Get an email when there's a new version of Revel

Home / v0.21.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2018-10-30 3.3 kB
Revel v0.21.0 release.tar.gz 2018-10-30 156.0 kB
Revel v0.21.0 release.zip 2018-10-30 208.1 kB
Totals: 3 Items   367.4 kB 0

New items

  • Session Engine support You can now define your own session engine. By default the cookie engine is the one used for the session, but with this change you can implement your own. Also controller.Session is now a map[string]interface{} which means you can place any object that can be serialized to a string.
  • Added http mux support you can now integrate Revel with packages that have their own HTTP muxers. This allows you to integrate with Hugo, Swagger or any suite of software that is out there.
  • revel.controller.reuse app.conf option to turn on / off reuse of the controllers. Defaults to true

Breaking changes

controller.Session is now a map[string]interface{} (previously was map[string]string) this means existing code needs to cast any values they pull from the session

    if username, ok := c.Session["user"]; ok { // username is a string type
        return c.getUser(username)
    }

changes to

    if username, ok := c.Session["user"]; ok { // username is an interface{} type
        return c.getUser(username.(string))
    }

Deprecated log points removed revel.ERROR, revel.TRACE, revel.DEBUG, revel.WARN have been removed

Function name change revel.OnAppStop Replaced revel.OnAppShutdown

revel.SimpleStack was moved to github.com/revel/revel/utils.SimpleStack

New packages required

Revel Framework

Revel Cmd

Package changes

Revel Framework

  • Added stack to errors Added stack information to router when forumlating error
  • Fix spelling errors from go report
  • Removed deprecated loggers
  • Updated travis , made windows success optional
  • Exposed StopServer function to public Changed session filter to use empty call
  • 577ae8b Enhancement pack for next release Added session engine support, and the session cookie engine breaking change revel.Session was map[string]string now is map[string]interface{}
  • Updated shutdown to support windows environment
  • Patched shutdown support to make it work through the event engine
  • Added ENGINE_SHUTDOWN_REQUEST to events, raising this event will cause the server to shutdown
  • Assigned Server engines to receive revel.Events Added revel.OnAppStop hooks -
  • Normalized startup / shutdown hooks into their own package

Revel Cmd

  • Modified run command to translate symlinks to absolute paths
  • Tool updates Updated tool to give more meaningful errors
  • Added file system as an option to fetch the skeleton from
  • Allow windows to fail on travis
  • run Command will choose CWD if no additional arguments are supplied
  • Added Revel version check, compatible lists are in model/version

Revel Modules

  • Updated CSRF test cases
  • Added travis test for modified test engine
  • Updated server-engine modules to support OnAppStop functionality.
  • Reorganization, readme updates Moved auth example into its own folder
  • Updated root readme
  • Updated CSRF

Revel Examples

  • Fixed issue with error checking closes websocket in chat
  • Updated booking module to work with changed session
  • Updated to remove any references to old revel.log variables
Source: README.md, updated 2018-10-30