diff options
Diffstat (limited to 'plugin_go.go')
-rw-r--r-- | plugin_go.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin_go.go b/plugin_go.go index 43e9aea..407363c 100644 --- a/plugin_go.go +++ b/plugin_go.go @@ -40,7 +40,7 @@ func (p *goPlugin) SetRoutes(group *echo.Group) { group.Static("/plugins/"+p.p.Name+"/assets", pluginDir+"/"+p.p.Name+"/public/assets") } -func (p *goPlugin) Inject(name string, data interface{}) error { +func (p *goPlugin) Inject(name string, data RenderData) error { if f, ok := p.p.injectFuncs["*"]; ok { if err := f(data); err != nil { return err @@ -114,7 +114,7 @@ func (p *GoPlugin) TemplateFuncs(funcs template.FuncMap) { } // InjectFunc is a function that injects data prior to rendering a template. -type InjectFunc func(data interface{}) error +type InjectFunc func(data RenderData) error // Inject registers a function to execute prior to rendering a template. The // special name "*" matches any template. |