From dbd9cc79483c5479e8ef8bdde8dd55e8011306eb Mon Sep 17 00:00:00 2001 From: Paulo Vieira Date: Tue, 7 Jan 2025 19:04:19 +0000 Subject: [PATCH] Update import.md (#441) --- src/docs/markdown/caddyfile/directives/import.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/docs/markdown/caddyfile/directives/import.md b/src/docs/markdown/caddyfile/directives/import.md index 044eb0b..c0e8e62 100644 --- a/src/docs/markdown/caddyfile/directives/import.md +++ b/src/docs/markdown/caddyfile/directives/import.md @@ -35,8 +35,8 @@ import [] [{block}] Note that prior to v2.7.0, the syntax was `{args.N}` but this form was deprecated in favor of the more flexible syntax above. ⚠️ Experimental | v2.9.x+ -- **{block...}** is an optional block to pass to the imported tokens. This placeholder is a special case, and is evaluated recursively at Caddyfile-parse-time, not at runtime. They can be used in two forms: - - `{block}` where the content of provided block will be substituted for the placeholder. +- **{block}** is an optional block to pass to the imported tokens. This placeholder is a special case, and is evaluated recursively at Caddyfile-parse-time, not at runtime. They can be used in two forms: + - `{block}` where the content of the whole provided block will be substituted for the placeholder - `{blocks.key}` where `key` is the first token of a parameter within the provided block @@ -125,8 +125,8 @@ Import a snippet which provides extendable options for a reverse proxy: ```caddy (extendable-proxy) { reverse_proxy { - {block.proxy_target} - {block.proxy_options} + {blocks.proxy_target} + {blocks.proxy_options} } }