From cf6af6def1cac3fc6cd044c82282208b7073eb64 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 1 Nov 2024 13:00:18 +0100 Subject: Implement gemtext HTTP middleware --- http/handlers/templates/functions/gemtext.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http/handlers/templates') 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) }, } } -- cgit v1.2.3