Documentation
¶
Index ¶
- Constants
- func RenderBreadcrumpComponent(w io.Writer, data BreadcrumbData) error
- type ArticleData
- type BreadcrumbData
- type BreadcrumbPart
- type Component
- type DirData
- type FooterData
- type FooterLink
- type FooterSection
- type HeadData
- type HeaderData
- type HeaderLink
- type HelpData
- type HelpTocData
- type HelpTocItem
- type IndexData
- type RealmData
- type RealmTOCData
- type RedirectData
- type SourceData
- type SourceTocData
- type SourceTocItem
- type StatusData
- type TemplateComponent
- type View
- func DirectoryView(data DirData) *View
- func HelpView(data HelpData) *View
- func NewTemplateView(typ ViewType, name string, data any) *View
- func RealmView(data RealmData) *View
- func RedirectView(data RedirectData) *View
- func SourceView(data SourceData) *View
- func StatusErrorComponent(message string) *View
- func StatusNoRenderComponent(pkgPath string) *View
- type ViewType
Constants ¶
View Source
const ( SidebarLayout = "sidebar" FullLayout = "full" )
Layout
View Source
const RedirectViewType = "redirect-view"
Variables ¶
This section is empty.
Functions ¶
func RenderBreadcrumpComponent ¶
func RenderBreadcrumpComponent(w io.Writer, data BreadcrumbData) error
Types ¶
type ArticleData ¶
type BreadcrumbData ¶
type BreadcrumbData struct { Parts []BreadcrumbPart Args string }
type BreadcrumbPart ¶
type FooterData ¶
type FooterData struct {}
func EnrichFooterData ¶
func EnrichFooterData(data FooterData) FooterData
type FooterLink ¶
type FooterLink struct {}
type FooterSection ¶
type FooterSection struct {}
type HeaderData ¶
type HeaderData struct { RealmPath string RealmURL weburl.GnoURL Breadcrumb BreadcrumbData Links []HeaderLink ChainId string Remote string }
func EnrichHeaderData ¶
func EnrichHeaderData(data HeaderData) HeaderData
type HeaderLink ¶
func StaticHeaderLinks ¶
func StaticHeaderLinks(u weburl.GnoURL) []HeaderLink
type HelpTocData ¶
type HelpTocData struct { Icon string Items []HelpTocItem }
type HelpTocItem ¶
type IndexData ¶
type IndexData struct { HeadData HeaderData BodyView *View }
type RealmData ¶
type RealmData struct { ComponentContent Component TocItems *RealmTOCData }
type RealmTOCData ¶
type RedirectData ¶
type SourceData ¶
type SourceTocData ¶
type SourceTocData struct { Icon string Items []SourceTocItem }
type SourceTocItem ¶
type StatusData ¶
StatusData holds the dynamic fields for the "status" template
type TemplateComponent ¶
type TemplateComponent struct {
// contains filtered or unexported fields
}
type View ¶
func DirectoryView ¶
func RedirectView ¶
func RedirectView(data RedirectData) *View
func SourceView ¶
func SourceView(data SourceData) *View
func StatusErrorComponent ¶
StatusErrorComponent returns a view for error scenarios
func StatusNoRenderComponent ¶
StatusNoRenderComponent returns a view for non-error notifications
Click to show internal directories.
Click to hide internal directories.