Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove #jinja2 instructions from the output #1192

Open
Momo-GE opened this issue Jul 11, 2024 · 1 comment
Open

Remove #jinja2 instructions from the output #1192

Momo-GE opened this issue Jul 11, 2024 · 1 comment

Comments

@Momo-GE
Copy link

Momo-GE commented Jul 11, 2024

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
Copy link
Contributor

jmaroeder commented Jul 11, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants