Move render functions, layouts, helpers, and utils from __init__.py to sub-modules (renders.py, layouts.py, helpers.py, utils.py). Update all bp route imports to point at sub-modules directly. Each __init__.py is now ≤20 lines of setup + registration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
462 B
Python
16 lines
462 B
Python
"""Cart defpage setup — registers layouts and loads .sx pages."""
|
|
from __future__ import annotations
|
|
|
|
|
|
def setup_cart_pages() -> None:
|
|
"""Register cart-specific layouts and load page definitions."""
|
|
from .layouts import _register_cart_layouts
|
|
_register_cart_layouts()
|
|
_load_cart_page_files()
|
|
|
|
|
|
def _load_cart_page_files() -> None:
|
|
import os
|
|
from shared.sx.pages import load_page_dir
|
|
load_page_dir(os.path.dirname(__file__), "cart")
|