diff options
author | 2019-12-10 16:07:02 +0100 | |
---|---|---|
committer | 2019-12-10 16:07:02 +0100 | |
commit | 4a504b0fc6d76afa52fbdafde338182c8463f6a0 (patch) | |
tree | cae529e3582ef6987682497011e72b694da97a58 /template.go | |
parent | 95da47f7c4522247b7136d14a923d54be5c1a9ae (diff) | |
download | alps-4a504b0fc6d76afa52fbdafde338182c8463f6a0.tar.gz alps-4a504b0fc6d76afa52fbdafde338182c8463f6a0.tar.bz2 alps-4a504b0fc6d76afa52fbdafde338182c8463f6a0.zip |
Rename Plugin.Render to Plugin.Inject
This function doesn't render anything, it just adds extra data to the
template data.
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 2cce5a3..b7af212 100644 --- a/template.go +++ b/template.go @@ -19,7 +19,7 @@ func (t *tmpl) Render(w io.Writer, name string, data interface{}, ectx echo.Cont ctx := ectx.Get("context").(*context) for _, plugin := range ctx.server.plugins { - if err := plugin.Render(name, data); err != nil { + if err := plugin.Inject(name, data); err != nil { return fmt.Errorf("failed to run plugin '%v': %v", plugin.Name(), err) } } |