Switch to Jinja2 template engine