Show current subdomain name (blog, cart, events, etc.) next to the site title in the root header row. Remove the redundant second "cart" menu row from cart overview and checkout error pages. Add dev-mode hot-reload for sexp templates: track file mtimes and re-read changed files per-request when RELOAD=true, so .sexp edits are picked up without restarting services. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
526 B
Python
20 lines
526 B
Python
"""
|
|
Shared s-expression component definitions.
|
|
|
|
Loaded at app startup via ``load_shared_components()``. Each component
|
|
is defined in an external ``.sexp`` file under ``templates/``.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
from .jinja_bridge import load_sexp_dir, watch_sexp_dir
|
|
|
|
|
|
def load_shared_components() -> None:
|
|
"""Register all shared s-expression components."""
|
|
templates_dir = os.path.join(os.path.dirname(__file__), "templates")
|
|
load_sexp_dir(templates_dir)
|
|
watch_sexp_dir(templates_dir)
|