add noteq

This commit is contained in:
orangix
2026-01-19 17:08:15 +01:00
parent 3f40c25b04
commit 189ebeefde
2 changed files with 18 additions and 2 deletions

View File

@@ -20,7 +20,6 @@ func Render(out io.Writer, name string, bind map[string]any) error {
type renderer struct {
templates map[string]*raymond.Template
funcmap map[string]any
}
const ext = ".hbs"
@@ -28,7 +27,7 @@ const ext = ".hbs"
func Initialize(views fs.FS) {
r := new(renderer)
r.templates = make(map[string]*raymond.Template)
raymond.RegisterHelpers(r.funcmap)
r.registerHelpers()
fs.WalkDir(views, "/", func(path string, d fs.DirEntry, err error) error {
if err != nil || d.IsDir() {
return err