- Implemented _emit_match_reactive() to generate init/reevaluate functions - Modified _emit_match() to create markers and call init functions - Init function pre-renders all cases and uses switch to insert active one - Reevaluate function checks if subject changed and swaps DOM Match init function: - Calls _render_cond_X_case_Y() for each case - Stores all case roots in globals - Evaluates subject with switch instruction - Inserts matching case at marker position Fallback to _emit_match_static() if not collected. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
7.5 KiB
Executable File
7.5 KiB
Executable File