diff options
author | Simon Ser <contact@emersion.fr> | 2020-01-20 21:37:28 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-20 21:37:28 +0100 |
commit | 01983eb7b5fc553e6ca7ed713ff1c07b0234059b (patch) | |
tree | f99646209f5c342ed0731ed35a25ec5f269c5f78 /plugins/base | |
parent | d19c17c6d58bcdecbb03125bd4f57b703d726ce5 (diff) | |
download | alps-01983eb7b5fc553e6ca7ed713ff1c07b0234059b.tar.gz alps-01983eb7b5fc553e6ca7ed713ff1c07b0234059b.zip |
Introduce PluginLoaderFunc
This allows registered plugins to execute code when loaded. This will
also allow the Lua support code to be a plugin.
Closes: https://todo.sr.ht/~sircmpwn/koushin/54
Diffstat (limited to 'plugins/base')
-rw-r--r-- | plugins/base/plugin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/plugin.go b/plugins/base/plugin.go index 5a946f5..16eaf1d 100644 --- a/plugins/base/plugin.go +++ b/plugins/base/plugin.go @@ -12,5 +12,5 @@ func init() { p.TemplateFuncs(templateFuncs) registerRoutes(&p) - koushin.RegisterPlugin(p.Plugin()) + koushin.RegisterPluginLoader(p.Loader()) } |