use backticks instead of nested quotes in template example

This commit is contained in:
Drake 2024-09-24 09:17:51 -04:00
parent a0b6cbfeb8
commit 94bc69b7dd

View file

@ -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 "}}"}}`
}
```