Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
  • Loading branch information
gfanton committed Aug 10, 2023
1 parent 7dfaeeb commit 761f25a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
5 changes: 1 addition & 4 deletions examples/gno.land/p/demo/mux/router.gno
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package mux

import (
"strconv"
"strings"
)
import "strings"

// Router handles the routing and rendering logic.
type Router struct {
Expand Down
7 changes: 7 additions & 0 deletions examples/gno.land/r/demo/showcase/gno.mod
Original file line number Diff line number Diff line change
@@ -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
)
4 changes: 0 additions & 4 deletions examples/gno.land/r/demo/showcase/mod_avl.gno
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package showcase

import (
"gno.land/p/demo/avl"
)

func init() {
registerModule(&module{
name: "p/avl",
Expand Down
3 changes: 3 additions & 0 deletions examples/gno.land/r/demo/showcase/showcase.gno
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 761f25a

Please sign in to comment.