pages

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pages provides the example app's static pages (homepage), layout rendering, and icon template functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Layout

func Layout() string

Layout returns the template name for 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) 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