diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-09-28 03:31:28 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-09-28 03:31:28 -0400 |
| commit | afe79e8430302808004ac2f5b5cc7d21d4d5d170 (patch) | |
| tree | 21609b2e45317f40698c607f56078a4a9bae5196 /templates | |
| parent | 2df8b9bf6448d3a64aaeacf455d0820ce9c8c333 (diff) | |
Add simple http server
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 11 | ||||
| -rw-r--r-- | templates/bingo.html | 16 |
2 files changed, 27 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..d263063 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>{{ block "title" . }}Bingo Factory{{ end }}</title> + </head> + <body> + {{ template "content" . }} + </body> +</html> diff --git a/templates/bingo.html b/templates/bingo.html new file mode 100644 index 0000000..e00543c --- /dev/null +++ b/templates/bingo.html @@ -0,0 +1,16 @@ +{{ define "title" }}Bingo{{ end }} +{{ define "content" }} +<table> + <tbody> + {{ range .Rows }} + <tr> + {{ range . }} + <td class="{{ if .Checked }}checked{{ end }} {{ if not .Checkable }}locked{{ end }}">{{ .Text }}</td> + {{ end }} + </tr> + {{ else }} + <td>No Rows!</td> + {{ end }} + </tbody> +</table> +{{ end }} |
