types

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeadComponent added in v0.0.2

type HeadComponent func(pageCtx *PageContext) templ.Component
type NavigationItem struct {
	Name        string
	Href        string
	Children    []NavigationItem
	Icon        templ.Component
	Permissions []permission.Permission
}
func (n NavigationItem) HasPermission(user *user.User) bool

type PageContext

type PageContext struct {
	Title         string
	Locale        string
	Localizer     *i18n.Localizer
	UniTranslator ut.Translator
	NavItems      []NavigationItem
	Pathname      string
}

func (*PageContext) T

func (p *PageContext) T(k string) string

type PageData

type PageData struct {
	Title       string
	Description string
}

func NewPageData

func NewPageData(title string, description string) *PageData

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL