cobbler
cobbler copied to clipboard
Fix Jinja2 templating engine support
We MUST add support for any other sane templater , but not Cheetah.
Cheetah is a braindead dream of some idiot who doesn't care about users and likes them to bleed to death before they find a solution to their basic need through cheetah manual. Even a 1+1 is a total disaster in Cheetah, I'm not mentioning loops, assignments and a BASIC FUCKING INTERPOLATION like $SNIPPET("snp_${variable}")
.
jinja2 sounds okay to me, but I'm not able to make it work.
I used #template=jinja2
in first line of a snippet , but it doesn't work, it still uses cheetah to parse. We need to fix this, please.
Cheetah is a popular templating engine, I personally do not have a problem with it.
We already support another templating engine (Jinja2), so the issue here is fixing the support for it. I'll rename the issue name to make this clearer.
Are you using latest Cobbler (2.6.10)?
cobbler-2.6.9-1.el6.noarch
Was this ever resolved? I'm using 2.8.3 and when I put #template=jinja2 as the first line in my snippet, it doesn't seem to work.