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 {
|
||||
header Content-Type text/plain
|
||||
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