jinja2

 jinja2  is a python-based templating language for HTML with rich macro support that adds  syntax.