From 41097eeef9f670e42130c99ea495fbd52b0a720b Mon Sep 17 00:00:00 2001 From: giles Date: Fri, 13 Mar 2026 02:38:31 +0000 Subject: [PATCH] Add spread + collect primitives, rewrite ~cssx/tw as defcomp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New SX primitives for child-to-parent communication in the render tree: - spread type: make-spread, spread?, spread-attrs — child injects attrs onto parent element (class joins with space, style with semicolon) - collect!/collected/clear-collected! — render-time accumulation with dedup into named buckets ~cssx/tw is now a proper defcomp returning a spread value instead of a macro wrapping children. ~cssx/flush reads collected "cssx" rules and emits a single ")))))