Add basic signup page outline

This commit is contained in:
Eli Ribble 2025-11-04 00:02:51 +00:00
parent 56eaa4ed1c
commit 8203c50b08
No known key found for this signature in database
4 changed files with 124 additions and 1 deletions

11
html.go
View file

@ -9,8 +9,9 @@ import (
)
var (
root = newBuiltTemplate("root", "base")
dashboard = newBuiltTemplate("dashboard", "base")
root = newBuiltTemplate("root", "base")
signup = newBuiltTemplate("signup", "base")
)
type BuiltTemplate struct {
@ -29,6 +30,8 @@ type ContentDashboard struct {
type ContentRoot struct {
BabbleLinks []Link
}
type ContentSignup struct {
}
func (bt *BuiltTemplate) ExecuteTemplate(w io.Writer, data any) error {
name := bt.files[0] + ".html"
@ -57,6 +60,12 @@ func htmlRoot(w io.Writer, path string) error {
return root.ExecuteTemplate(w, data)
}
func htmlSignup(w io.Writer, path string) error {
data := ContentSignup{
}
return signup.ExecuteTemplate(w, data)
}
func makeFuncMap() template.FuncMap {
funcMap := template.FuncMap{}
return funcMap