Skip to content

Instantly share code, notes, and snippets.

@jgraham909
Created September 25, 2013 08:47
Show Gist options
  • Save jgraham909/6696844 to your computer and use it in GitHub Desktop.
Save jgraham909/6696844 to your computer and use it in GitHub Desktop.
Setting revel template parameters from filters or interceptors, from https://groups.google.com/forum/#!topic/revel-framework/HN75x32HoXI
var ContextFilter = func(c *Controller, fc []Filter) {
c.RenderArgs["mycontext"] = xyz
fc[0](c, fc[1:])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment