From 224339b2c317c7bd40ca8867fd331012c07e9150 Mon Sep 17 00:00:00 2001 From: a Date: Tue, 18 Jun 2024 01:41:29 -0500 Subject: [PATCH] add note to other page --- src/docs/markdown/caddyfile/concepts.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/docs/markdown/caddyfile/concepts.md b/src/docs/markdown/caddyfile/concepts.md index e3fbf92..69554a6 100644 --- a/src/docs/markdown/caddyfile/concepts.md +++ b/src/docs/markdown/caddyfile/concepts.md @@ -413,6 +413,29 @@ b.example.com { } ``` +⚠️ Experimental | v2.9.x+ + +You can also pass an optional block to an imported snippet, and use them as follows. + +```caddy +(snippet) { + {block} + respond "OK" +} + +a.example.com { + import snippet { + header +foo bar + } +} + +b.example.com { + import snippet { + header +bar foo + } +} +``` + **[Read the `import` directive page](/docs/caddyfile/directives/import) to learn more.**