01983eb7b5
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
16 lines
241 B
Go
16 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())
|
|
}
|