wrap example in div
This commit is contained in:
parent
5dba9d0167
commit
72c171709e
1 changed files with 3 additions and 1 deletions
|
|
@ -18,7 +18,9 @@ var PartialsSnippet = `func CurrentTimePartial(ctx *h.RequestContext) *h.Partial
|
||||||
|
|
||||||
var examplePageSnippet = `func CurrentTimePage(ctx *h.RequestContext) *h.Page {
|
var examplePageSnippet = `func CurrentTimePage(ctx *h.RequestContext) *h.Page {
|
||||||
return RootPage(
|
return RootPage(
|
||||||
h.GetPartial(partials.CurrentTimePartial, "load, every 1s")
|
h.Div(
|
||||||
|
h.GetPartial(partials.CurrentTimePartial, "load, every 1s")
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}`
|
}`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue