Files
marqdo/tests/ext/web-static-smoke.mq.md
T
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

757 B


title: web static smoke description: Offline app.static registration (no listen). import web:ext/web/web.mq.md import json:lib/json.mq.md

main

home = > web.page title="Home" app = > web.app page=home host=127.0.0.1 port=18081 app = > app.static dir="web-fixtures/public" mount="/static"

dir = > json.get value=app key="static_dir"

  1. dir == "web-fixtures/public"

print text=dir-ok

print text=dir-fail

mount = > json.get value=app key="static_mount"

  1. mount == "/static"

print text=mount-ok

print text=mount-fail

app2 = > app.static dir="assets" mount="/assets" m2 = > json.get value=app2 key="static_mount"

  1. m2 == "/assets"

print text=custom-ok

print text=custom-fail