Initial commit
Build and Deploy / build-and-deploy (push) Failing after 36s

This commit is contained in:
2026-07-07 21:58:39 -04:00
commit 68c1f38b8d
17 changed files with 1463 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package handler
import (
"html/template"
"io"
)
type Templates struct {
tmpl *template.Template
}
func NewTemplates(tmpl *template.Template) *Templates {
return &Templates{tmpl: tmpl}
}
func (t *Templates) Render(w io.Writer, name string, data any) {
_ = t.tmpl.ExecuteTemplate(w, name+".html", data)
}