Skip to content
Advertisement

Best Python templating library to facilitate code generation [closed]

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?

Advertisement

Answer

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.

Advertisement