// 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), "/chart": ChartPage(d), "/data": DataPage(d), "/docs": DocsPage(d), "/kit": KitPage(d), "/overlays": OverlaysPage(d), "/server": ServerPage(d), "/table": TablePage(d), } } // StaticPaths are the routes the server pre-renders (SSR); others render client-side. var StaticPaths = map[string]bool{ "/": true, "/about": true, "/chart": true, "/data": true, "/docs": true, "/table": true, } // RouteLayout maps each route to the name of the layout that wraps it. var RouteLayout = map[string]string{ "/": "public", "/about": "public", "/chart": "app", "/data": "app", "/docs": "app", "/kit": "app", "/overlays": "app", "/server": "app", "/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) }