add note to other page

This commit is contained in:
a 2024-06-18 01:41:29 -05:00
parent 82150416e7
commit 224339b2c3
No known key found for this signature in database
GPG key ID: 374BC539FE795AF0

View file

@ -413,6 +413,29 @@ b.example.com {
} }
``` ```
⚠️ <i>Experimental</i> <span style='white-space: pre;'> | </span> <span>v2.9.x+</span>
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.** **[Read the `import` directive page](/docs/caddyfile/directives/import) to learn more.**