$def with (project, release, filename, content) $ prefix, _, name = filename.rpartition("/") $if prefix: $ file_tree = chain(*[(p, f"{p}") for p in prefix.split("/")]) $else: $ file_tree = [] $var breadcrumbs = ("projects", "Projects", project, f"{project}", "releases", "Releases", release, f"{release}", "files", "Files") + tuple(file_tree) $var title = name $if isinstance(content, str): $:highlight(content, ".py") $else: