aboutsummaryrefslogtreecommitdiff
path: root/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'template.go')
-rw-r--r--template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/template.go b/template.go
index 6286e08..4b46d84 100644
--- a/template.go
+++ b/template.go
@@ -87,7 +87,7 @@ func (r *renderer) Render(w io.Writer, name string, data interface{}, ectx echo.
ctx := ectx.Get("context").(*Context)
for _, plugin := range ctx.Server.Plugins {
- if err := plugin.Inject(name, data.(RenderData)); err != nil {
+ if err := plugin.Inject(ctx, name, data.(RenderData)); err != nil {
return fmt.Errorf("failed to run plugin '%v': %v", plugin.Name(), err)
}
}