Migrating to jinja the web