def template_files(filename): template_path = os.path.join(current_app.root_path, current_app.template_folder) return send_from_directory(template_path, filename)