diff options
-rw-r--r-- | internal/examples/app/go.work | 6 | ||||
-rw-r--r-- | internal/examples/app/html/home.go | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/internal/examples/app/go.work b/internal/examples/app/go.work new file mode 100644 index 0000000..5d58b63 --- /dev/null +++ b/internal/examples/app/go.work @@ -0,0 +1,6 @@ +go 1.23.1 + +use ( + . + ../../../ +) diff --git a/internal/examples/app/html/home.go b/internal/examples/app/html/home.go index d4e192c..a3d729b 100644 --- a/internal/examples/app/html/home.go +++ b/internal/examples/app/html/home.go @@ -13,8 +13,8 @@ func HomePage(items []string) Node { P(Raw(`Have a look at the <a href="https://github.com/maragudk/gomponents/tree/main/internal/examples/app">source code</a> to see how it’s structured.`)), - Ul(Group(Map(items, func(s string) Node { + Ul(Map(items, func(s string) Node { return Li(Text(s)) - }))), + })), ) } |