diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-20 16:37:45 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-20 16:37:45 -0400 |
| commit | 14c294f8ddde21b22b090376e0ad0a31c4fdc94a (patch) | |
| tree | 877f3e8d3ae6dbf29f3bee76c9c8e5b57b99d9cc /scripts/theme-studio/colormath.js | |
| parent | 3a09716ad72030ff398cdce54df16d1a41019daf (diff) | |
| download | dotemacs-14c294f8ddde21b22b090376e0ad0a31c4fdc94a.tar.gz dotemacs-14c294f8ddde21b22b090376e0ad0a31c4fdc94a.zip | |
refactor(theme-studio): defer generate.py's page build behind a lazy _build()
Importing generate.py ran the full assembly at module load -- DEFAULTS, the
package inventory, palette/syntax/uimap construction, and the HTML fill -- so
face_coverage.py, which imports it only for UI_FACES, paid the whole cost. Move
that derivation into a cached _build(); expose the built attributes (HTML, MAP,
APPS, ...) lazily via PEP 562 __getattr__. UI_FACES/CATS/COLS and the file bodies
stay cheap module constants, the file write stays __main__-guarded, and the page
is byte-identical (check-generated current; test_generate green via __getattr__).
Diffstat (limited to 'scripts/theme-studio/colormath.js')
0 files changed, 0 insertions, 0 deletions
