refactor folder structure
This commit is contained in:
@@ -155,7 +155,7 @@ func write(path, tmpl string, data genData) {
|
||||
const routesTmpl = `// Code generated by wasmgen. DO NOT EDIT.
|
||||
package app
|
||||
|
||||
import "kjol/vdom"
|
||||
import "kjol/wasmruntime/vdom"
|
||||
|
||||
// Routes maps each //gowasm:page path to its instantiated render function.
|
||||
func Routes(d Deps) map[string]func() *vdom.VNode {
|
||||
@@ -191,7 +191,7 @@ const serverTmpl = `// Code generated by wasmgen. DO NOT EDIT.
|
||||
|
||||
package app
|
||||
|
||||
import "kjol/rsc"
|
||||
import "kjol/wasmruntime/rsc"
|
||||
|
||||
func init() {
|
||||
{{range .Servers}} rsc.Register("{{.}}", {{.}})
|
||||
@@ -205,8 +205,8 @@ const clientTmpl = `// Code generated by wasmgen. DO NOT EDIT.
|
||||
package app
|
||||
|
||||
import (
|
||||
"kjol/rsc"
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime/rsc"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
{{range .Servers}}// {{.}} is a generated client stub for the server component of the same name.
|
||||
|
||||
Reference in New Issue
Block a user