aboutsummaryrefslogtreecommitdiffstats
path: root/plugin.go
diff options
context:
space:
mode:
authorLibravatarLibravatar Simon Ser <[email protected]> 2019-12-17 15:01:15 +0100
committerLibravatarLibravatar Simon Ser <[email protected]> 2019-12-17 15:01:15 +0100
commitca3672df2ad75cbb866b08ca79320a75e30a55ce (patch)
tree72bd0406d61d5e64e36c90a79c3e6e511c490fd8 /plugin.go
parentd8a875a5f74f90c2ca52c61e72ddb88f78d97277 (diff)
downloadalps-ca3672df2ad75cbb866b08ca79320a75e30a55ce.tar.gz
alps-ca3672df2ad75cbb866b08ca79320a75e30a55ce.tar.bz2
alps-ca3672df2ad75cbb866b08ca79320a75e30a55ce.zip
Add RenderData interface
This allows Go plugins to easily inject global data.
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go2
1 files changed, 1 insertions, 1 deletions
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
}