Created
September 25, 2013 08:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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