From ca3672df2ad75cbb866b08ca79320a75e30a55ce Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 17 Dec 2019 15:01:15 +0100 Subject: Add RenderData interface This allows Go plugins to easily inject global data. --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin.go') diff --git a/plugin.go b/plugin.go index 46fd1a7..6d5b730 100644 --- a/plugin.go +++ b/plugin.go @@ -18,7 +18,7 @@ type Plugin interface { SetRoutes(group *echo.Group) // Inject is called prior to rendering a template. It can extend the // template data by setting new items in the Extra map. - Inject(name string, data interface{}) error + Inject(name string, data RenderData) error // Close is called when the plugin is unloaded. Close() error } -- cgit v1.2.3-59-g8ed1b