HS: wip — parser every-fix, integration boot, test tooling expansion

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-06 18:51:32 +00:00
parent b0c135412a
commit c5d9a8b789
6 changed files with 442 additions and 64 deletions

View File

@@ -115,8 +115,13 @@
(dom-set-data el "hs-script" src)
(dom-set-data el "hs-active" true)
(dom-set-attr el "data-hyperscript-powered" "true")
(host-set! (host-global "window") "__hs_current_me" el)
(guard
(_e (true nil))
(_e
(true
(do
(dom-dispatch el "hyperscript:parse-error" {:detail {:errors (list _e)}})
nil)))
(let
((handler (hs-handler src)))
(let
@@ -130,6 +135,7 @@
safe-handler
(hs-query-all (or comp-name "")))
(safe-handler el))))))
(host-set! (host-global "window") "__hs_current_me" nil)
(dom-dispatch el "hyperscript:after:init" nil)))))))
;; ── Boot subtree: for dynamic content ───────────────────────────