Skip to content
Discussion options

You must be logged in to vote

I believe the template parsing is run before the decrypt, as my template variables aren't be interpreted.

That is correct. includeTemplate reads and parses the file as a template, so in your example it is parsed as a template before being passed to decrypt.

Note that chemzoi does support encrypted templates, for example a file encrypted_dot_foo.tmpl in your source directory will be decrypted then executed as a template, and finally used to populate .foo.

At the moment, I don't think there's a way to use encrypted templates in .chezmoitemplates.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@twpayne
Comment options

@garrettreid
Comment options

Answer selected by garrettreid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants