The simplest way of doing “templating” may be to use substituteAll.
Thanks for the mustache link. This looks interesting. I’ve previously thought about possibly integrating Jinja2 somehow, possibly making use of structured variables.
Edit: never mind, I guess this won’t help you since with sops, since you don’t have the secrets available at evaluation time. Sorry about the confusion.