From 01983eb7b5fc553e6ca7ed713ff1c07b0234059b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 20 Jan 2020 21:37:28 +0100 Subject: 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 --- plugins/base/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/base') 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()) } -- cgit v1.2.3