Run 'onchange_after_' script based on expanded template contents #2684
-
I would like to use the tip from the user guide about triggering an I have tried a few different things to hack this together: The most obvious solution, moving the template contents into In the script Adding another layer of indirection: Did I miss a way to make this work? If not, would that be a desireable feature for chezmoi? I don't know Go or chezmoi's internals but the most straightforward solution appears to be a template helper function that can render a template to a string, so it can be passed to other functions: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you tried the |
Beta Was this translation helpful? Give feedback.
Have you tried the
includeTemplate
function?