diff options
author | 2019-12-11 13:03:31 +0100 | |
---|---|---|
committer | 2019-12-11 13:03:31 +0100 | |
commit | e54a359acb7b308b75cb76ff8b3dba289903c3fb (patch) | |
tree | 900d246e32b318e8ab32dc6b488ed08d7cd1106a /template.go | |
parent | 28a8f3f6acc148b2dde213f2beb6e24c67338b5d (diff) | |
download | alps-e54a359acb7b308b75cb76ff8b3dba289903c3fb.tar.gz alps-e54a359acb7b308b75cb76ff8b3dba289903c3fb.tar.bz2 alps-e54a359acb7b308b75cb76ff8b3dba289903c3fb.zip |
Export Server.{Sessions,Plugins}
And unexport a few internal functions.
Diffstat (limited to 'template.go')
-rw-r--r-- | template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/template.go b/template.go index 1c38c07..7f4d658 100644 --- a/template.go +++ b/template.go @@ -55,7 +55,7 @@ func (r *renderer) Render(w io.Writer, name string, data interface{}, ectx echo. // ectx is the raw *echo.context, not our own *Context ctx := ectx.Get("context").(*Context) - for _, plugin := range ctx.Server.plugins { + for _, plugin := range ctx.Server.Plugins { if err := plugin.Inject(name, data); err != nil { return fmt.Errorf("failed to run plugin '%v': %v", plugin.Name(), err) } |