[openstack-dev] [Change I30b127d6] Cheetah vs Jinja

Solly Ross sross at redhat.com
Tue Jul 16 13:41:55 UTC 2013


(This email is with regards to https://review.openstack.org/#/c/36316/)

Hello All,

I have been implementing the Guru Meditation Report blueprint (https://blueprints.launchpad.net/oslo/+spec/guru-meditation-report), and the question of a templating engine was raised.  Currently, my version of the code includes the Jinja2 templating engine (http://jinja.pocoo.org/), which is modeled after the Django templating engine (it was designed to be an implementation of the Django templating engine without requiring the use of Django), which is used in Horizon.  Apparently, the Cheetah templating engine (http://www.cheetahtemplate.org/) is used in a couple places in Nova.  

IMO, the Jinja template language produces much more readable templates, and I think is the better choice for inclusion in the Report framework.  It also shares a common format with Django (making it slightly easier to write for people coming from that area), and is also similar to template engines for other languages. What does everyone else think?

Best Regards,
Solly Ross



More information about the OpenStack-dev mailing list