Closed romariorobby closed 2 years ago
To get {{
in the output, use {{ "{{" }}
in the template.
Hope this helps.
Sorry, i didn't quite understand. where should i put the double quotes? only on clashes character? or whole block? I tried these but still give me templating error. do you mind if you give me example from example i gave above? Thanks
You'll need to do something like
//
{{- if (eq .chezmoi.os "linux") }}
cmd tar ${{ "{{" }}
set -f
mkdir $1
cp -r $fx $1
tar czf $1.tar.gz $1
rm -rf $1
{{ "}}" }}
{{- end }}
Ahhh I see, silly me. Thank you!
What exactly are you trying to do?
I tried to create a template for lf. in the lfrc config use
{{
}}
to create custom function, as result it gives templating error for chezmoi. is there a way to get around this? here's exampleWhat have you tried so far?
Describe what you have tried so far.
Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flagOutput of
chezmoi doctor
Additional context
lfrc config Add any other context about the problem here.