Best Python templating library to facilitate code generation

taudep picture taudep · Mar 4, 2009 · Viewed 26.6k times · Source

Instead of me spending the next day (or year) reading about them all, are there any suggestions for templating engines that I should look into in more detail?

Answer

Ali Afshar picture Ali Afshar · Mar 4, 2009

Best suggestion: try them all. It won't take long.

My favourite: Jinja2 (by a mile)

It has decent syntax, can trace errors through it, and is sandboxable.