j2cli
j2cli copied to clipboard
How to change default tags?
Hello
Using J2CLI and a template file, i would like to generate a JINJA2 template as an output. So i need the first template to use JINJA tags that are not the default ones so that i can output strings like {{ somevar }}
. For example i could use tags with outer {
replaced by [
([{
, [%
, etc.).
(I come from the PERL universe with Template2. I can change the tags when using Template2.)
If someone knows how to do that in ansible, that's better (i mean use a ansible playbook that takes a template to output an ansible template file - yes, it is something like dynamically creating templates).
Thanks in advance for any advice.
Thierry