mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 14:06:17 -04:00
Revert "caddyfile: snippet block input documentation (#400)"
This reverts commit 41470c4e02
.
This commit is contained in:
parent
3381c0a0c9
commit
cf78bf0716
2 changed files with 1 additions and 74 deletions
|
@ -413,29 +413,6 @@ 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.**
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue