Polymode for jinja2 template language