Skip to content

Commit 72c1717

Browse files
committed
wrap example in div
1 parent 5dba9d0 commit 72c1717

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

htmgo-site/pages/docs/core-concepts/partials.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ var PartialsSnippet = `func CurrentTimePartial(ctx *h.RequestContext) *h.Partial
1818

1919
var examplePageSnippet = `func CurrentTimePage(ctx *h.RequestContext) *h.Page {
2020
return RootPage(
21-
h.GetPartial(partials.CurrentTimePartial, "load, every 1s")
21+
h.Div(
22+
h.GetPartial(partials.CurrentTimePartial, "load, every 1s")
23+
)
2224
)
2325
}`
2426

0 commit comments

Comments
 (0)