// Code generated by wasmgen. DO NOT EDIT. package app import "kjol/vdom" // Routes maps each //gowasm:page path to its instantiated render function. func Routes(d Deps) map[string]func() *vdom.VNode { return map[string]func() *vdom.VNode{ "/": HomePage(d), "/about": AboutPage(d), "/wasm": DocsPage(d), "/wasm/chart": ChartPage(d), "/wasm/data": DataPage(d), "/wasm/kit": KitPage(d), "/wasm/overlays": OverlaysPage(d), "/wasm/server": ServerPage(d), "/wasm/table": TablePage(d), } } // StaticPaths are the routes the server pre-renders (SSR); others render client-side. var StaticPaths = map[string]bool{ "/": true, "/about": true, "/wasm": true, "/wasm/chart": true, "/wasm/data": true, "/wasm/table": true, } // RouteLayout maps each route to the name of the layout that wraps it. var RouteLayout = map[string]string{ "/": "public", "/about": "public", "/wasm": "app", "/wasm/chart": "app", "/wasm/data": "app", "/wasm/kit": "app", "/wasm/overlays": "app", "/wasm/server": "app", "/wasm/table": "app", } // LayoutFor wraps a page's content in the layout declared for its route. func LayoutFor(d Deps, path string, content *vdom.VNode) *vdom.VNode { switch RouteLayout[path] { case "app": return AppLayout(d, content) case "public": return PublicLayout(d, content) } return AppLayout(d, content) }