cobbler icon indicating copy to clipboard operation
cobbler copied to clipboard

Fix Jinja2 templating engine support

Open celesteking opened this issue 9 years ago • 3 comments

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.

celesteking avatar Dec 24 '15 17:12 celesteking

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)?

alanoe avatar Dec 28 '15 12:12 alanoe

cobbler-2.6.9-1.el6.noarch

celesteking avatar Jan 05 '16 11:01 celesteking

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.

jdratlif avatar Sep 02 '18 18:09 jdratlif