How do I use escape curly brackets in template? #1706
-
|
Hello, I want to template my But apparently chezmoi will assume those args are template variables so it just print out |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
The easiest way is: but you can put more inside the quotes, for example: |
Beta Was this translation helpful? Give feedback.
-
|
Another alternative that might work for some is using the # chezmoi:template:left-delimiter="[[" right-delimiter=]]
merge:
command: nvim
args:
- -d
- "{{ .Source }}"
- "{{ .Destination }}"
- "{{ .Target }}"If you need to use actual template variables elsewhere in the file, use the new delimiters: [[ .chezmoi.homeDir ]] |
Beta Was this translation helpful? Give feedback.
The easiest way is:
but you can put more inside the quotes, for example: