diff --git a/examples/gno.land/p/demo/mux/router.gno b/examples/gno.land/p/demo/mux/router.gno index ae09d6a275ac..5b9cd3a22733 100644 --- a/examples/gno.land/p/demo/mux/router.gno +++ b/examples/gno.land/p/demo/mux/router.gno @@ -1,9 +1,6 @@ package mux -import ( - "strconv" - "strings" -) +import "strings" // Router handles the routing and rendering logic. type Router struct { diff --git a/examples/gno.land/r/demo/showcase/gno.mod b/examples/gno.land/r/demo/showcase/gno.mod new file mode 100644 index 000000000000..7995c764427c --- /dev/null +++ b/examples/gno.land/r/demo/showcase/gno.mod @@ -0,0 +1,7 @@ +module showcase + +require ( + "gno.land/p/demo/avl" v0.0.0-latest + "gno.land/p/demo/mux" v0.0.0-latest + "gno.land/p/demo/ui" v0.0.0-latest +) \ No newline at end of file diff --git a/examples/gno.land/r/demo/showcase/mod_avl.gno b/examples/gno.land/r/demo/showcase/mod_avl.gno index 0eba0a902751..4a1b902acaa3 100644 --- a/examples/gno.land/r/demo/showcase/mod_avl.gno +++ b/examples/gno.land/r/demo/showcase/mod_avl.gno @@ -1,9 +1,5 @@ package showcase -import ( - "gno.land/p/demo/avl" -) - func init() { registerModule(&module{ name: "p/avl", diff --git a/examples/gno.land/r/demo/showcase/showcase.gno b/examples/gno.land/r/demo/showcase/showcase.gno index 99087f9cebe6..d0778a0c6912 100644 --- a/examples/gno.land/r/demo/showcase/showcase.gno +++ b/examples/gno.land/r/demo/showcase/showcase.gno @@ -76,6 +76,7 @@ func RenderCommand(res *mux.ResponseWriter, req *mux.Request) { dom.Footer.Append(ui.HR{}, ui.Link{Text: "[Back]", URL: realmPath + module.path()}) res.Write(dom.String()) + return } func RenderModule(res *mux.ResponseWriter, req *mux.Request) { @@ -109,6 +110,7 @@ func RenderModule(res *mux.ResponseWriter, req *mux.Request) { // write to response res.Write(dom.String()) + return } func RenderHome(res *mux.ResponseWriter, req *mux.Request) { @@ -141,6 +143,7 @@ This framework encourages experimentation and creativity, allowing developers to // write to response res.Write(dom.String()) + return } func Render(path string) string {