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

23 lines
507 B
Go
Raw Permalink 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(
2024-10-25 16:11:22 +00:00
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...),
)
}