Update fetch for static page gen, fix DOM patching

This commit is contained in:
2026-07-13 09:51:32 -04:00
parent 9662f83319
commit ea3d2a6d03
10 changed files with 305 additions and 13 deletions

View File

@@ -25,7 +25,7 @@ type repoInfo struct {
Stars int `json:"stargazers_count"`
}
//gowasm:page /data layout=app
//gowasm:page /data layout=app static
func DataPage(d Deps) func() *VNode {
// (1) gob from our own server via httputil.RespondGob / FetchGob.
quotes := NewSignal([]Quote{})

View File

@@ -20,6 +20,7 @@ var StaticPaths = map[string]bool{
"/": true,
"/about": true,
"/chart": true,
"/data": true,
}
// RouteLayout maps each route to the name of the layout that wraps it.