Update src/docs/markdown/extending-caddy/placeholders.md

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
a 2024-08-22 07:40:31 -05:00 committed by GitHub
parent e2fa84cddc
commit 8c3eeb5667
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,7 +84,7 @@ Some users may immediately notice that this means it is impossible to use the `{
## Implementing placeholder support
You should not process placeholders when ummarshaling your Caddyfile. Instead, unmarshal the placeholders as strings in your configuration and evaluate them during either your module's execution or `Provision()` using a `caddy.Replacer`.
You should not process placeholders when ummarshaling your Caddyfile. Instead, unmarshal the placeholders as strings in your configuration and evaluate them during either your module's execution (e.g. `ServeHTTP()` for HTTP handlers, `Match()` for matchers, etc.) or in the `Provision()` step, using a `caddy.Replacer`.
### Examples