alps/plugins/base/plugin.go
Simon Ser 01983eb7b5
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
2020-01-20 21:37:28 +01:00

17 lines
241 B
Go

package koushinbase
import (
"git.sr.ht/~emersion/koushin"
)
const messagesPerPage = 50
func init() {
p := koushin.GoPlugin{Name: "base"}
p.TemplateFuncs(templateFuncs)
registerRoutes(&p)
koushin.RegisterPluginLoader(p.Loader())
}