jinja2

A very fast and expressive template engine.

Here are some articles that you may find helpful