Open mandresm opened 1 month ago
Document that tarjet changes extension
Looks good from the Python side, still needs user-testing (@JanStreffing) and documentation in the handbook. Nice work! 👍🏻
I hope to give this a try tomorrow. Maybe I just drop by one of your offices?
Sure, I'll be around tomorrow
After this PR, files that are handled by ESM-Tools can be
jinja2
templates and will be rendered at the time of the copying.This was a request by @JanStreffing to be able to handle variable substitution in
xml
files. Jan, could you test it? You can do your xml and yaml modifications in a new branch departing from this one. We can merge in release that branch right after this one gets merged, and there should be no conflicts.How does it work
ESM-Tools automatically tries to resolve jinja templates during movements. It searches for sources finishing with
.j2
and then it knows that instead of copying/linking/moving it needs to render the template and produce the new target file. We passconfig
tojinja
, that means you just need to specify the variable you want to subsitute in the right format with the full path separated by points:xios.yaml
domain_def.xml
or with python dict syntax
TODO