alps/plugin.go
Simon Ser 4a504b0fc6
Rename Plugin.Render to Plugin.Inject
This function doesn't render anything, it just adds extra data to the
template data.
2019-12-10 16:07:02 +01:00

16 lines
237 B
Go

package koushin
import (
"html/template"
"github.com/labstack/echo/v4"
)
type Plugin interface {
Name() string
Filters() template.FuncMap
SetRoutes(group *echo.Group)
Inject(name string, data interface{}) error
Close() error
}