File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ import (
18
18
// Options for configuring a nextrouter
19
19
type Options struct {
20
20
Logger slog.Logger
21
- TemplateDataFunc TemplateDataFunc
21
+ TemplateDataFunc HTMLTemplateHandler
22
22
}
23
23
24
- // TemplateDataFunc is a function that lets the consumer of `nextrouter`
24
+ // HTMLTemplateHandler is a function that lets the consumer of `nextrouter`
25
25
// inject arbitrary template parameters, based on the request. This is useful
26
26
// if the Request object is carrying CSRF tokens, session tokens, etc -
27
27
// they can be emitted in the page.
28
- type TemplateDataFunc func (* http.Request ) interface {}
28
+ type HTMLTemplateHandler func (* http.Request ) interface {}
29
29
30
30
// Handler returns an HTTP handler for serving a next-based static site
31
31
// This handler respects NextJS-based routing rules:
You can’t perform that action at this time.
0 commit comments