Documentation
¶
Overview ¶
Package pages provides the example app's static pages (homepage), layout rendering, and request-path middleware for active nav link highlighting.
Index ¶
- func Layout() burrow.LayoutFunc
- func Logo() template.HTML
- type App
- func (a *App) FuncMap() template.FuncMap
- func (a *App) Middleware() []func(http.Handler) http.Handler
- func (a *App) Name() string
- func (a *App) NavItems() []burrow.NavItem
- func (a *App) Register(_ *burrow.AppConfig) error
- func (a *App) Routes(r chi.Router)
- func (a *App) TemplateFS() fs.FS
- func (a *App) TranslationFS() fs.FS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Layout ¶
func Layout() burrow.LayoutFunc
Layout returns a LayoutFunc that wraps page content in the app layout.
Types ¶
type App ¶
type App struct{}
App implements the pages app.
func (*App) Middleware ¶
Middleware injects the request path into context for nav link highlighting.
func (*App) TemplateFS ¶
TemplateFS returns the embedded HTML template files.
func (*App) TranslationFS ¶
Click to show internal directories.
Click to hide internal directories.