HubSpot / jinjava

Jinja template engine for Java
Apache License 2.0
706 stars 170 forks source link

Remove #jinja2 instructions from the output #1192

Open Momo-GE opened 4 months ago

Momo-GE commented 4 months ago

I'm using jinjava to test ansible templates, and I've noticed that these template sometimes contain lines such as:

#jinja2: trim_blocks:False

and these lines are kept in the output file. I was wondering if it would be possible, if not to interpret them, to ignore them?

jmaroeder commented 4 months ago

I believe that is an Ansible extension to jinja2, and not a native feature of jinja2 (I can only find a reference to #jinja2 in the Ansible documention)