Skip to content

Commit

Permalink
docs: Document how to escape {{ and }} in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler authored and twpayne committed Apr 7, 2023
1 parent 098c7ad commit c2c84fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/chezmoi.io/docs/user-guide/tools/diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ specify:
!!! hint

If you generate your config file from a config file template, then you'll
need to escape the `{{` and `}}` in your config file template so that they
appear in your generated config file.
need to escape the `{{` and `}}` as `{{ "{{" }}` and `{{ "}}" }}`. That way
your generated config file contains the `{{` and `}}` you expect.

## Don't show scripts in the diff output

Expand Down
4 changes: 2 additions & 2 deletions assets/chezmoi.io/docs/user-guide/tools/merge.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ state, source state, and target state respectively. For example, to use
!!! hint

If you generate your config file from a config file template, then you'll
need to escape the `{{` and `}}` in your config file template so that they
appear in your generated config file.
need to escape the `{{` and `}}` as `{{ "{{" }}` and `{{ "}}" }}`. That way
your generated config file contains the `{{` and `}}` you expect.

0 comments on commit c2c84fe

Please sign in to comment.