Files
marqdo/ext/web
cflmyandCursor bd5555afaa Unify bare-identifier semantics in *…* / **…** (Python namespace)
Inside italic/bold code segments every bare word is a variable — including
call arguments and method-call receivers — so text literals must be quoted
and receivers no longer need backticks. A bare dotted callee `a.b` resolves
as a method call when `a` is a local variable, otherwise as a library path
(Python-style unified namespace), in both the tree-walk and bytecode backends.

Migrate ~70 tests plus ext/web, ext/quantum, ext/ai and the example projects
to the new idiom; update SKILL.md and the design docs; fix the web/quantum
example data model (db/index.mq.md). Unit and gold suites pass; only the 3
network-live tests fail offline.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 11:20:46 +08:00
..

ext/web

Official dynamic website extension: GFM tables + class methods.
Design: doc/design/ext-web.md.

Surface Import Classes
English > ext/web/web.mq.md page · db · app · form · style
Chinese > ext/web/网页.mq.md 页面 · 数据库 · 应用 · 表单 · 样式
cargo build -p marqdo_plugin_web
# optional install into ~/.marqdo/ext
marqdo ext add web

Canonical sample (design §4): examples/web-site/.

cargo run -- run examples/web-site/index.mq.md
# http://127.0.0.1:18081/
# /_form/article  ·  /admin  ·  /admin/articles/new

Offline smokes: tests/ext/web-smoke.mq.md, web-form-smoke.mq.md, web-admin-smoke.mq.md.

Feature Notes
Form §5.5 field/rules tables · validate · submit · mount_form → GET|POST /_form/{id}
Admin CRUD admin=True · schema → same form path · new/edit/delete under /admin/{table}
Route `app`.route path=/about page=`about` → GET /about