From 3e181614d315c52b296de2f61c33e43f5556fe64 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sat, 15 Sep 2018 15:27:18 -0700 Subject: [PATCH] Mention how to escape `{{` and `}}` in readme (#353) --- README.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.adoc b/README.adoc index 4becbb8..e431bdb 100644 --- a/README.adoc +++ b/README.adoc @@ -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: