mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 20:46:15 -04:00
add note to other page
This commit is contained in:
parent
82150416e7
commit
224339b2c3
1 changed files with 23 additions and 0 deletions
|
@ -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.**
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue