Files
marqdo/examples/web-spa-app/index.mq.md
T
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 19:33:58 +08:00

1.3 KiB

title, description, import
title description import
web-spa-app Native Marqdo SPA — list/detail/edit via WASM client routes + memory store
web
ext/web/web.mq.md

main

Full-page client app (zero author JS). Build assets first:

marqdo wasm build -o examples/web-spa-app/static

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

intro = "

Items New

Items

    Click an item for detail.

    Edit Back

    Title

    Save Cancel

    " + embed

    page = > web.page title="Marqdo SPA" intro=intro layout="bare" app = > web.app page=page host="127.0.0.1" port=18093 app = > app.static dir="static" mount="/static" app = > app.redirect from="/item" to="/" permanent=False

    app.listen