Files
marqdo/examples/web-client-site/index.mq.md
T
cflmyandCursor a9d30cdf4a feat(wasm): route D zero-author-JS frontend + plan route E
Auto-mount via bridge mount/data-mq and client_embed; expand DOM/form
effects; drop hello loader JS; add web-client-site. Document that C+D
cover mid-size interactivity but not most JS apps—route E covers
routing, storage, lists, WebSocket, and richer DOM/timers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 08:46:05 +08:00

860 B


title: web-client-site description: SSR shell + client_embed auto-mount; author zero JS (route D) import web:ext/web/web.mq.md

main

Server page with a counter UI. Client logic lives in static/client.mq.md (loaded by official bridge via client_embed).

embed = > web.client_embed bridge="/static/marqdo-bridge.js" wasm="/static/marqdo_wasm.wasm" source="/static/client.mq.md" boot=True

intro = "

Marqdo client site

SSR + WASM session. No author JS.

<div id="count">0

<button id="bump" type="button" disabled>Bump <button id="reset" type="button" disabled>Reset

<pre id="log">booting…" + embed

page = > web.page title="Marqdo client site" intro=intro app = > web.app page=page host="127.0.0.1" port=18090 app = > app.static dir="static" mount="/static"

app.listen