Skip to content

Conversation

@steffenbusch
Copy link
Contributor

Added documentation for the maybe template function so that it appears in the module reference:
https://caddyserver.com/docs/modules/http.handlers.templates#docs

While adding the new section, the humanize example snippets that previously appeared under pathEscape were moved to the humanize function documentation, where they belong.

Assistance Disclosure

Copilot was used to help draft the documentation. The implementation referenced was maybeFunc in modules/caddyhttp/templates/tplcontext.go.

Copy link
Member

@francislavoie francislavoie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@francislavoie francislavoie merged commit bfdb049 into caddyserver:master Dec 6, 2025
25 checks passed
@steffenbusch steffenbusch deleted the maybe-tpl-doc branch December 6, 2025 15:56
@francislavoie francislavoie added this to the v2.11.0 milestone Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants