Mention how to escape {{ and }} in readme (#353)

This commit is contained in:
Casey Rodarmor 2018-09-15 15:27:18 -07:00 committed by GitHub
parent ad0d37a173
commit 3e181614d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,6 +224,13 @@ publish:
rm -rf {{tarball}} {{tardir}}
```
To write a recipe containing `{{` or `}}`, use a string literal inside of `{{...}}`:
```make
braces:
echo 'I {{ "{{" }}LOVE{{ "}}" }} curly braces!'
```
=== Strings
Double-quoted strings support escape sequences: