"""Utilities for streamlined UI. This is a temporary module.""" from flask import request def sui_template(template_path: str) -> str: """Return the streamlined UI template for given template path.""" _sui="sui-" if request.args.get("streamlined_ui") else "" _parts = template_path.split("/") return "/".join(_parts[:-1] + [f"{_sui}{_parts[-1]}"])