diff options
author | 2019-12-17 15:01:15 +0100 | |
---|---|---|
committer | 2019-12-17 15:01:15 +0100 | |
commit | ca3672df2ad75cbb866b08ca79320a75e30a55ce (patch) | |
tree | 72bd0406d61d5e64e36c90a79c3e6e511c490fd8 /plugin.go | |
parent | d8a875a5f74f90c2ca52c61e72ddb88f78d97277 (diff) | |
download | alps-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |