Skip to content

docs: add maybe template function documentation - #7388

Merged
francislavoie merged 1 commit into
caddyserver:masterfrom
steffenbusch:maybe-tpl-doc
Dec 6, 2025
Merged

francislavoie merged 1 commit into
caddyserver:masterfrom
steffenbusch:maybe-tpl-doc

Conversation

@steffenbusch

Copy link
Copy Markdown
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.

@francislavoie francislavoie left a comment

Copy link
Copy Markdown
Member

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
@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
@github-actions github-actions Bot mentioned this pull request Jan 6, 2026
4 tasks
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