Adapt template to Jinja