Slim market/sxc/pages/__init__.py → 21 lines

Move ~1670 lines to 6 sub-modules: renders.py, layouts.py, helpers.py,
cards.py, filters.py, utils.py. Update all bp route imports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 16:58:47 +00:00
parent 8eaf4026ab
commit 9cbfb09b41
12 changed files with 1732 additions and 1664 deletions

View File

@@ -30,7 +30,7 @@ def register() -> Blueprint:
markets, has_more = await _load_markets(post["id"], page)
from sxc.pages import render_page_markets_cards
from sxc.pages.renders import render_page_markets_cards
post_slug = post.get("slug", "")
sx_src = await render_page_markets_cards(markets, has_more, page, post_slug)
return sx_response(sx_src)