summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--documentation/documentation/language/tutorial.page14
1 files changed, 14 insertions, 0 deletions
diff --git a/documentation/documentation/language/tutorial.page b/documentation/documentation/language/tutorial.page
index ca3529e1f..461c92e70 100644
--- a/documentation/documentation/language/tutorial.page
+++ b/documentation/documentation/language/tutorial.page
@@ -100,6 +100,20 @@ the builtin [conditionals](structures.html#conditionals):
This is only one assignment, so no errors.
+## Variable Interpolation
+
+Variables will get interpolated within double-quoted strings by default. You
+can disable the interpolation by escaping the dollar sign:
+
+ $str = "A string with a \$dollar sign in it"
+
+During interpolation, you can also surround your variable with curly braces if
+necessary:
+
+ $a = "something"
+ $b = "else"
+ $c = "${a}_${b}"
+
# Fact Variables (facts)
In addition to variables that are manually assigned (as above), `puppet` also