Migrate to Jinja template