diff --git a/html.go b/html.go
index 2485590..a0a2e1b 100644
--- a/html.go
+++ b/html.go
@@ -16,5 +16,9 @@ func handlerRoot(w http.ResponseWriter, r *http.Request) {
if err != nil {
panic(err.Error())
}
- templ.Execute(w, new(interface{}))
+ varmap := map[string]interface{}{
+ "matrice": Matrix,
+ "tempoAggiorna": Clock,
+ }
+ templ.Execute(w, varmap)
}
diff --git a/template/Interfaccia.html b/template/Interfaccia.html
index c0e47bf..42b75ed 100644
--- a/template/Interfaccia.html
+++ b/template/Interfaccia.html
@@ -1,6 +1,7 @@
GoBug
+
- Go bug
-
-
-
- | |
- |
-
-
- |
- |
- |
-
+ Go bug
+
+ {{range $riga := .matrice}}
+
+ {{range $cella := $riga}}
+ {{ $cella }} |
+ {{ end }}
+
+ {{ end }}