refact round 3

This commit is contained in:
2026-03-11 20:42:07 +01:00
parent d843df816a
commit 2157425b24
15 changed files with 477 additions and 413 deletions

16
content/handler.howtos.go Normal file
View File

@@ -0,0 +1,16 @@
package content
import "bbs-server/engine"
// HowToHandler handles the HowTo Guides menu item
type HowToHandler struct {
repo *wikiRepository
}
func NewHowToHandler(token string) *HowToHandler {
return &HowToHandler{repo: &wikiRepository{token: token}}
}
func (h *HowToHandler) Handle(s *engine.Session) {
renderWikiList(s, h.repo, "howto", "HowTo Guides", engine.MG)
}