First pass at converting the templates for Flask