pagectx

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: BSD-3-Clause-Clear Imports: 1 Imported by: 0

Documentation

Overview

Package pagectx holds the shared "base" page context types used to render HTML pages that extend base.html. It lives in a dependency-free leaf package so both the web handlers and the auth providers can build the same base context without creating an import cycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	User      *users.User
	Title     string
	BrandName string
	LogoPath  string
	NavItems  []NavItem
	CsrfToken string
	Version   string
}

Base holds the fields every page that extends base.html needs.

type NavItem struct {
	Title    string
	Href     string
	Selected bool
}

NavItem is a single entry in the top navigation bar.

Jump to

Keyboard shortcuts

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