#!/usr/bin/env python3 """Pre-render every bundled SAP reference template to PNG and emit an HTML gallery so a human can browse the catalog and pick the right starting template visually. The selector ranks templates from a text prompt, but humans pick faster when they can see a thumbnail. This is especially useful when the selector is unsure or when the prompt is vague. Usage: template_browser.py template_browser.py --out-dir .cache/template-browser/ template_browser.py --thumbs-only # skip HTML, just render PNGs Output: .cache/template-browser/