my eye

Spaify page breadcrumbs

Committed 1e00fb

--- a/web/framework/__init__.py
+++ b/web/framework/__init__.py

         naked = getattr(tx.response, "naked", False)
         if chromeless:
             body = "<article id=content>"
+            if tx.request.uri.path:
+                breadcrumbs = []
+                if "breadcrumbs" in tx.response.body:
+                    breadcrumbs = list(tx.response.body.breadcrumbs)
+                body += f"""<nav class=breadcrumbs>
+                {templates.render_breadcrumbs(breadcrumbs, tx.request.uri.path)}
+                </nav>"""
             title = getattr(tx.response.body, "title", None)
             if title:
                 body += f"<header><h1>{title}</h1></header>"