diff options
author | Brian Picciano <me@mediocregopher.com> | 2024-11-01 13:00:18 +0100 |
---|---|---|
committer | Brian Picciano <me@mediocregopher.com> | 2024-11-01 13:00:18 +0100 |
commit | cf6af6def1cac3fc6cd044c82282208b7073eb64 (patch) | |
tree | 64d6186b5e30e1125c1eff6fa1d86a379e3d3693 /http/handlers/templates/functions/gemtext.go | |
parent | 246a99c28980e985bb4cff99042459bd5729cde1 (diff) |
Implement gemtext HTTP middleware
Diffstat (limited to 'http/handlers/templates/functions/gemtext.go')
-rw-r--r-- | http/handlers/templates/functions/gemtext.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http/handlers/templates/functions/gemtext.go b/http/handlers/templates/functions/gemtext.go index 68a10ca..bc7a31f 100644 --- a/http/handlers/templates/functions/gemtext.go +++ b/http/handlers/templates/functions/gemtext.go @@ -18,7 +18,7 @@ import ( func init() { caddy.RegisterModule(Gemtext{}) httpcaddyfile.RegisterDirective( - "gemtext", + "gemtext_function", func(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error) { var f Gemtext err := f.UnmarshalCaddyfile(h.Dispenser) @@ -56,7 +56,7 @@ func (f *Gemtext) CustomTemplateFunctions() template.FuncMap { func (Gemtext) CaddyModule() caddy.ModuleInfo { return caddy.ModuleInfo{ - ID: "http.handlers.templates.functions.gemtext", + ID: "http.handlers.templates.functions.gemtext_function", New: func() caddy.Module { return new(Gemtext) }, } } |