Documentation ¶ Index ¶ func Add[C context.Context, M any](c *route.Configuration[C], r string, m string, p Handler[C, M], e Error[C]) type Error type Handler type Page func (p *Page[C, M]) ServeHTTP(w http.ResponseWriter, r *http.Request) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Add ¶ func Add[C context.Context, M any](c *route.Configuration[C], r string, m string, p Handler[C, M], e Error[C]) Types ¶ type Error ¶ type Error[C context.Context] func(c C, w http.ResponseWriter, r *http.Request, err error) *template.Template type Handler ¶ type Handler[C context.Context, M any] func(c C, w http.ResponseWriter, r *http.Request) (*template.Template, M, error) type Page ¶ type Page[C context.Context, M any] struct { Decorators []route.Decorator[C] PageHandler Handler[C, M] ErrorHandler Error[C] } func (*Page[C, M]) ServeHTTP ¶ func (p *Page[C, M]) ServeHTTP(w http.ResponseWriter, r *http.Request) Source Files ¶ View all Source files config.go error.go page.go Click to show internal directories. Click to hide internal directories.