Accept ADR 0003: handlers return fetch/after maps; the official bridge runs Promise/timer work and resumes via mq_call. Add fetch.mq.md demo. Co-authored-by: Cursor <cursoragent@cursor.com>
748 B
748 B
browser-hello(WASM C1–C3)
浏览器内跑 Marqdo(路线 C)。
# 仓库根目录
cargo build -p marqdo --release
./target/release/marqdo wasm build -o examples/browser-hello
cd examples/browser-hello
python3 -m http.server 8765
| 页 | 说明 |
|---|---|
| / | C1:编辑源码 → mq_run 打印 |
| /interact.html | C3:counter.mq.md 交互表 → 点击改 DOM |
| /fetch.html | C4:fetch / after 效应续体 |
marqdo-bridge.js:官方宿主桥(boot/call/wireEvents/applyEffects)- 业务源码只有
.mq.md;异步见 ADR 0003