pages

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: EUPL-1.2 Imports: 12 Imported by: 0

Documentation

Overview

Package pages provides the example app's static pages (homepage), layout rendering, and request-path middleware for active nav link highlighting.

Index

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.

func Logo() template.HTML

Logo returns a static brand logo HTML for auth pages.

Types

type App

type App struct{}

App implements the pages app.

func New

func New() *App

New creates a new pages app.

func (*App) FuncMap

func (a *App) FuncMap() template.FuncMap

FuncMap returns template functions for the layout and home page.

func (*App) Middleware

func (a *App) Middleware() []func(http.Handler) http.Handler

Middleware injects the request path into context for nav link highlighting.

func (*App) Name

func (a *App) Name() string

func (*App) NavItems

func (a *App) NavItems() []burrow.NavItem

func (*App) Register

func (a *App) Register(_ *burrow.AppConfig) error

func (*App) Routes

func (a *App) Routes(r chi.Router)

func (*App) TemplateFS

func (a *App) TemplateFS() fs.FS

TemplateFS returns the embedded HTML template files.

func (*App) TranslationFS

func (a *App) TranslationFS() fs.FS

Jump to

Keyboard shortcuts

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