Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
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.
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.
Click to show internal directories.
Click to hide internal directories.