Files
ersteller/page.go
T
2025-08-22 12:19:58 +02:00

38 lines
782 B
Go

package ersteller_lib
import (
"github.com/labstack/echo/v4"
. "maragu.dev/gomponents"
)
type NavItem struct {
Label string
Url string
}
type WebsiteMetaData struct {
AppTitle string
Title string
Lang Language
Description string
NavItems []NavItem
}
type PageWebsiteMetaData struct {
AppTitle string
Title I18nText
Lang Language
Description I18nText
NavItems []ActivePath
FooterNavItems []ActivePath
ScriptSrcs []string
StyleSrcs []string
ActiveNavPath string
HideNavigation bool
UserEmail string
}
type CreatePageFunc func(c echo.Context, metadata PageWebsiteMetaData, content ...Node) error
type CreateHtmxPageFunc func(req HtmxContext, metadata PageWebsiteMetaData, content ...Node)