diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-08 08:56:40 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-08 08:58:21 -0700 |
| commit | 735512086436dba4969107695ba7b93f09efce2e (patch) | |
| tree | 7bf014884a5d655d4477def39c9f794c9037b4fa /templates/games | |
| parent | Use /tmp/hole as the hole directory for local runs (diff) | |
| download | roseh.moe-735512086436dba4969107695ba7b93f09efce2e.tar.zst | |
Simplify the HTML templates by omitting end tags
Diffstat (limited to 'templates/games')
| -rw-r--r-- | templates/games/index.html.template | 16 | ||||
| -rw-r--r-- | templates/games/pong.html.template | 17 | ||||
| -rw-r--r-- | templates/games/rms.html.template | 16 |
3 files changed, 20 insertions, 29 deletions
diff --git a/templates/games/index.html.template b/templates/games/index.html.template index f235bd1..64cef30 100644 --- a/templates/games/index.html.template +++ b/templates/games/index.html.template @@ -1,10 +1,8 @@ -{{define "head"}}<title>Games</title>{{end}} +<title>Games</title> -{{define "body" -}} - <section> - <ul> - <li><a href="/games/pong">Pong</a> (warning: loud)</li> - <li><a href="/games/rms">RMS shooter</a></li> - </ul> - </section> -{{- end}} +<section> + <ul> + <li><a href="/games/pong">Pong</a> (warning: loud) + <li><a href="/games/rms">RMS shooter</a> + </ul> +</section> diff --git a/templates/games/pong.html.template b/templates/games/pong.html.template index a221023..8cb9226 100644 --- a/templates/games/pong.html.template +++ b/templates/games/pong.html.template @@ -1,11 +1,8 @@ -<!DOCTYPE html> +<!doctype html> <html lang="en" style="width:100%;height:100%;margin:0;padding:0"> - <head> - <title>Pong</title> - <link rel="icon" href="/static/games/pong/icon.webp"> - <script defer src="/static/games/pong/pong.js"></script> - </head> - <body style="width:100%;height:100%;margin:0;padding:0"> - <canvas id="pong" style="display:block;margin:0;padding:0"></canvas> - </body> -</html> +<title>Pong</title> +<link rel="icon" href="/static/games/pong/icon.webp"> +<script defer src="/static/games/pong/pong.js"></script> + +<body style="width:100%;height:100%;margin:0;padding:0"> +<canvas id="pong" style="display:block;margin:0;padding:0"></canvas> diff --git a/templates/games/rms.html.template b/templates/games/rms.html.template index 9f396fe..e657006 100644 --- a/templates/games/rms.html.template +++ b/templates/games/rms.html.template @@ -1,12 +1,8 @@ -{{define "head" -}} - <title>RMS shooter</title> - <script src="/static/games/rms/rms.js" defer></script> -{{- end}} +<title>RMS shooter</title> -{{define "body" -}} - <img id="sprite-sheet" src="/static/games/rms/sprite-sheet.webp" hidden> +<script src="/static/games/rms/rms.js" defer></script> +<img id="sprite-sheet" src="/static/games/rms/sprite-sheet.webp" hidden> - <section> - <canvas id="canvas" width="800" height="600"></canvas> - </section> -{{- end}} +<section> + <canvas id="canvas" width="800" height="600"></canvas> +</section> |
