mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 20:46:15 -04:00
use backticks instead of nested quotes in template example (#417)
This commit is contained in:
parent
a0b6cbfeb8
commit
d5208b2b21
1 changed files with 1 additions and 1 deletions
|
@ -54,6 +54,6 @@ To serve a simple static response using a template, make sure to set `Content-Ty
|
||||||
example.com {
|
example.com {
|
||||||
header Content-Type text/plain
|
header Content-Type text/plain
|
||||||
templates
|
templates
|
||||||
respond "Current year is: {{printf "{{"}}now | date "2006"{{printf "}}"}}"
|
respond `Current year is: {{printf "{{"}}now | date "2006"{{printf "}}"}}`
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue