Documentation
¶
Index ¶
- func AddTemplateValue(ctx context.Context, key string, val any)
- func Compress() func(next http.Handler) http.Handler
- func InitTemplateContext(next http.Handler) http.Handler
- func ServeStaticOrTemplate(staticRoot http.FileSystem, tmplRoot fs.FS) http.Handler
- func Template(tmplRoot fs.FS, filename string) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
Compress is a middleware that compresses responds body. The only difference of `github.com/go-chi/chi/v5/middleware#Compress` is the default value. In order to be able to use this middleware, ensure to set url format with `github.com/go-chi/chi/v5/middleware#URLFormat`
func ServeStaticOrTemplate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.