def theme_template_files(identifier, filename): template_path = os.path.join( current_app.root_path, "themes", identifier, "templates" ) return send_from_directory(template_path, filename)