Add basic signup page outline
This commit is contained in:
parent
56eaa4ed1c
commit
8203c50b08
4 changed files with 124 additions and 1 deletions
11
html.go
11
html.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue