From 4a504b0fc6d76afa52fbdafde338182c8463f6a0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 10 Dec 2019 16:07:02 +0100 Subject: Rename Plugin.Render to Plugin.Inject This function doesn't render anything, it just adds extra data to the template data. --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin.go') diff --git a/plugin.go b/plugin.go index 6a5b7e7..03e2261 100644 --- a/plugin.go +++ b/plugin.go @@ -10,6 +10,6 @@ type Plugin interface { Name() string Filters() template.FuncMap SetRoutes(group *echo.Group) - Render(name string, data interface{}) error + Inject(name string, data interface{}) error Close() error } -- cgit v1.2.3-59-g8ed1b