-
I was reading the Manage machine-to-machine differences guide, when I noticed this syntax: {{ .email | quote }} I gather that this is a mustache-like templating system, but I'm not quite sure what is the Does it simply add quotes to the value? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As described in the templating guide, chezmoi uses Go's You could use
but, depending on the exact context, this will break if |
Beta Was this translation helpful? Give feedback.
As described in the templating guide, chezmoi uses Go's
text/template
. The| quote
takes the value of what's on the left hand side of the|
and quotes it as a string, including escaping any special characters like\
and"
.You could use
but, depending on the exact context, this will break if
.email
contains any backslashes, double quotes, or newlines.