pages

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(d *deps.Deps) http.Handler

NewHandler returns the handler for the app's pages.

func NewRoute

func NewRoute(dp RouteDataProvider) web.Route

NewRoute returns the page for this folder.

Types

type DP

type DP struct{}

DP provides the data of the layout around every page; the layout shows no values.

func NewDP

func NewDP(*deps.Deps) *DP

NewDP returns the layout's data provider.

func (*DP) Data

Data has nothing to set.

type RouteData

type RouteData struct{}

RouteData holds the variables the template declares with <ssr:var>.

type RouteDataProvider

type RouteDataProvider interface {
	Data(ctx context.Context, r *web.Request, w web.ResponseWriter, data *RouteData) error
}

RouteDataProvider is what this page's DP implements.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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