diff --git a/components/index.html b/components/index.html index 0c4081d..14ef046 100644 --- a/components/index.html +++ b/components/index.html @@ -7,7 +7,22 @@ -

HTMX + Go Starter

-

Edit this HTML in templates/public/index.html

+

Word Color Cards

+
+ {{range $word, $color := .}} +
+ {{$word}} +
+ {{end}} +
diff --git a/handlers/handlers.go b/handlers/handlers.go index 3e78a10..cb0b704 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -19,5 +19,5 @@ func HandlePing(w http.ResponseWriter, r *http.Request) { func HandleHome(w http.ResponseWriter, r *http.Request) { tmpl := template.Must(template.ParseFiles("../components/index.html")) - tmpl.Execute(w, nil) + tmpl.Execute(w, roundWords) }