Update pages in place instead of reloading them

A page that is working fetches itself again and swaps only its content;
the log on the Packages page follows new text.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
This commit is contained in:
2026-11-18 00:18:18 +01:00
co-authored by Claude Sonnet 5.5
parent 4ee28b812b
commit c2115aba03
6 changed files with 46 additions and 8 deletions
+2 -2
View File
@@ -3,7 +3,6 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{if .Refresh}}<meta http-equiv="refresh" content="{{.Refresh}}">{{end}}
<title>{{.Title}} · router</title>
<link rel="stylesheet" href="/static/style.css">
</head>
@@ -41,8 +40,9 @@
<h1>{{.Title}}</h1>
{{if .Flash}}<p class="flash">{{.Flash}}</p>{{end}}
{{if .Error}}<p class="error">{{.Error}}</p>{{end}}
{{template "content" .}}
<div id="live"{{if .Live}} data-live="{{.Live}}"{{end}}>{{template "content" .}}</div>
</main>
<script src="/static/menu.js"></script>
<script src="/static/live.js"></script>
</body>
</html>