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.**