A couple of months ago, I have added the documentation for the maybe template function in caddyserver/caddy#7388:
https://github.com/caddyserver/caddy/blob/d2172bea61414635c55554b42714af94a3c9cefd/modules/caddyhttp/templates/templates.go#L328
However, visiting the Caddy website documentation for Module http.handlers.templates (https://caddyserver.com/docs/modules/http.handlers.templates), the maybe func is still not present.
There are also at least these two other template funcs not present in the documentation:
If the issue with the missing maybe function is sorted out, I would be pleased to add the two missing funcs via another PR in https://github.com/caddyserver/caddy
A couple of months ago, I have added the documentation for the
maybetemplate function in caddyserver/caddy#7388:https://github.com/caddyserver/caddy/blob/d2172bea61414635c55554b42714af94a3c9cefd/modules/caddyhttp/templates/templates.go#L328
However, visiting the Caddy website documentation for Module
http.handlers.templates(https://caddyserver.com/docs/modules/http.handlers.templates), themaybefunc is still not present.There are also at least these two other template funcs not present in the documentation:
fileExist-> https://github.com/caddyserver/caddy/blob/d2172bea61414635c55554b42714af94a3c9cefd/modules/caddyhttp/templates/tplcontext.go#L429fileStat-> https://github.com/caddyserver/caddy/blob/d2172bea61414635c55554b42714af94a3c9cefd/modules/caddyhttp/templates/tplcontext.go#L442If the issue with the missing
maybefunction is sorted out, I would be pleased to add the two missing funcs via another PR in https://github.com/caddyserver/caddy