sx/sx/hyperscript.sx — _hyperscript playground page at /sx/(applications.(hyperscript)) - compile-result defcomp (SSR compilation display) - pipeline documentation (tokenize → parse → compile) - example showcases with pre-compiled output - sx-post form → handler for interactive compilation sx/sx/handlers/hyperscript-api.sx — POST handler: /sx/(applications.(hyperscript.(api.compile))) Accepts source param, returns compiled SX + parse tree HTML NOTE: hs-parse returns (do) in server context — JIT/CEK runtime issue where parser closures don't evaluate correctly. Works in test runner (3127/3127). Investigating separately. sx_server.ml — url_decode fix: decode + as space in form data Standard application/x-www-form-urlencoded uses + for spaces. Nav: _hyperscript added to Applications section. Config: handler:hs- prefix added for handler dispatch. 3127/3127 tests, zero regressions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7 lines
780 B
Plaintext
7 lines
780 B
Plaintext
(define __app-config {:handler-prefixes (list "handler:ex-" "handler:reactive-" "handler:") :shell "~shared:shell/sx-page-shell" :inner-layout "~layouts/doc" :outer-layout "~shared:layout/app-body" :css-files (list "basics.css" "tw.css") :warmup-paths (list "/sx/" "/sx/(geography)" "/sx/(language)" "/sx/(applications)" "/sx/(geography.(reactive.(examples)))" "/sx/(applications.(sxtp))" "/sx/(geography.(cek))" "/sx/(geography.(reactive))" "/sx/(geography.(hypermedia))") :batchable-helpers (list "highlight" "component-source") :title "SX" :init-script :default :home-path "/sx/" :path-prefix "/sx/" :client-libs (list "tw-layout.sx" "tw-type.sx" "tw.sx")})
|
|
|
|
(dict-set!
|
|
__app-config
|
|
"handler-prefixes"
|
|
(append (get __app-config "handler-prefixes") (list "handler:hs-")))
|