Got cool stuff working

This commit is contained in:
2025-03-20 08:11:41 +01:00
parent 896ac66ab0
commit 8490a8c029
12 changed files with 316 additions and 13 deletions

18
template_debug.go Normal file
View File

@@ -0,0 +1,18 @@
// / +build !release
package main
import (
"html/template"
"io"
"net/http"
)
const staticFiles = http.Dir("./static")
func renderTemplate(wr io.Writer) error {
templates, err := template.ParseGlob("web/*.gohtml")
if err != nil {
return err
}
return templates.Execute(wr, nil)
}