diff options
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 }} |
