htmgo/examples/todo-list/pages/base/root.go
maddalax 5bbd35d272 fix example todo
(cherry picked from commit a2b286e9aa)
2024-09-26 14:41:46 -05:00

20 lines
499 B
Go

package base
import (
"github.com/maddalax/htmgo/framework/h"
)
func RootPage(children ...h.Ren) h.Ren {
return h.Html(
h.HxExtension(h.BaseExtensions()),
h.Head(
h.Meta("viewport", "width=device-width, initial-scale=1"),
h.Meta("title", "htmgo todo mvc"),
h.Meta("description", "an example of how to build a todo mvc app with htmgo"),
h.Meta("charset", "utf-8"),
h.Link("/public/main.css", "stylesheet"),
h.Script("/public/htmgo.js"),
),
h.Fragment(children...),
)
}