j2cli icon indicating copy to clipboard operation
j2cli copied to clipboard

How to change default tags?

Open ThierryBesancon opened this issue 4 years ago • 0 comments

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

ThierryBesancon avatar Aug 18 '20 19:08 ThierryBesancon