Versions in this module Expand all Collapse all v2 v2.6.5 Jun 21, 2023 Changes in this version + type CustomFunctions interface + CustomTemplateFunctions func() template.FuncMap + type TemplateContext struct + Args []any + CustomFuncs []template.FuncMap + Req *http.Request + RespHeader WrappedHeader + Root http.FileSystem + func (c *TemplateContext) NewTemplate(tplName string) *template.Template + func (c TemplateContext) Cookie(name string) string + func (c TemplateContext) Host() (string, error) + func (c TemplateContext) OriginalReq() http.Request + func (c TemplateContext) RemoteIP() string + type Templates struct + Delimiters []string + FileRoot string + MIMETypes []string + func (Templates) CaddyModule() caddy.ModuleInfo + func (t *Templates) Provision(ctx caddy.Context) error + func (t *Templates) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error + func (t *Templates) Validate() error + type WrappedHeader struct + func (h WrappedHeader) Add(field, val string) string + func (h WrappedHeader) Del(field string) string + func (h WrappedHeader) Set(field, val string) string