Working on improving the create device page

This commit is contained in:
2025-03-24 07:00:07 +01:00
parent 5232e47b1d
commit 6405e7d692
6 changed files with 78 additions and 54 deletions

View File

@@ -2,17 +2,7 @@
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)
}