Rename htmlpage to html

Because it's going to get more tools.
This commit is contained in:
Eli Ribble 2026-01-30 18:21:27 +00:00
parent 2bd848fa97
commit 9b1d75d47f
No known key found for this signature in database
44 changed files with 83 additions and 77 deletions

View file

@ -6,7 +6,7 @@ import (
"strconv"
"github.com/Gleipnir-Technology/nidus-sync/config"
"github.com/Gleipnir-Technology/nidus-sync/htmlpage"
"github.com/Gleipnir-Technology/nidus-sync/html"
"github.com/go-chi/chi/v5"
"github.com/rs/zerolog/log"
"github.com/skip2/go-qrcode"
@ -125,13 +125,13 @@ func mock(t string, w http.ResponseWriter, code string) {
SettingUserAdd: "/mock/setting/user/add",
},
}
template, ok := htmlpage.TemplatesByFilename[t+".html"]
template, ok := html.TemplatesByFilename[t+".html"]
if !ok {
log.Error().Str("template", t).Msg("Failed to find template")
respondError(w, "Failed to render template", nil, http.StatusInternalServerError)
return
}
htmlpage.RenderOrError(w, &template, data)
html.RenderOrError(w, &template, data)
}
func renderMock(templateName string) http.HandlerFunc {