htmgo/htmgo-site/pages/time.go
2024-09-26 21:15:04 -05:00

17 lines
294 B
Go

package pages
import (
"github.com/maddalax/htmgo/framework/h"
"htmgo-site/pages/base"
"htmgo-site/partials"
)
func CurrentTimePage(ctx *h.RequestContext) *h.Page {
return h.NewPage(
base.RootPage(
ctx,
h.GetPartial(
partials.CurrentTimePartial,
"load, every 1s"),
))
}