htmgo/examples/todo-list/pages/base/root.go

21 lines
499 B
Go
Raw Normal View History

2024-09-19 23:13:04 +00:00
package base
import (
"github.com/maddalax/htmgo/framework/h"
)
func RootPage(children ...h.Ren) h.Ren {
2024-09-19 23:13:04 +00:00
return h.Html(
h.HxExtension(h.BaseExtensions()),
2024-09-19 23:13:04 +00:00
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"),
2024-09-19 23:13:04 +00:00
h.Link("/public/main.css", "stylesheet"),
h.Script("/public/htmgo.js"),
),
h.Fragment(children...),
)
}