Start web skill=tools migration with in-package layout law.
Add root/index and layout skills that force file-partitioned pages and ban HTML/CSS injection as the default path; wire ext add, docs, and call coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
24dcb97354
commit
bb06dad134
17 files changed
+1065
-41
No files matched your search
+19
-8
@@ -1,20 +1,31 @@
|
||||
# ext/web — Document / Endpoint / Resource
|
||||
|
||||
Official dynamic site extension (**ADR 0007**). Design: [`doc/design/ext-web-artifact.md`](../../doc/design/ext-web-artifact.md).
|
||||
Official dynamic site extension (**ADR 0007**).
|
||||
|
||||
| Surface | Import |
|
||||
|---------|--------|
|
||||
| English | `import web:ext/web/web.mq.md` |
|
||||
| Chinese | `导入 网页:ext/web/网页.mq.md` |
|
||||
| Doc | Link |
|
||||
|-----|------|
|
||||
| Artifact model | [`doc/design/ext-web-artifact.md`](../../doc/design/ext-web-artifact.md) |
|
||||
| **Layout engineering** | [`doc/design/ext-web-layout-paradigm.md`](../../doc/design/ext-web-layout-paradigm.md) |
|
||||
| skill=tools paradigm | [`doc/design/ext-skill-tools-paradigm.md`](../../doc/design/ext-skill-tools-paradigm.md) |
|
||||
|
||||
| Surface | Path |
|
||||
|---------|------|
|
||||
| EN root skill (agents first) | `ext/web/index.mq.md` |
|
||||
| EN author facade | `import web:ext/web/web.mq.md` |
|
||||
| ZH root / facade | `导入 网页:ext/web/网页.mq.md` |
|
||||
| Layout tools | `ext/web/layout/index.mq.md` · `ext/web/布局/索引.mq.md` |
|
||||
|
||||
**Facade:** `page` · `route` · `serve` · `render` · `inspect` · `use`
|
||||
|
||||
**Related modules:** `ext/data` (db/cache/storage) · `ext/security` (auth/oidc/rbac) · `ext/net` (http/websocket/url)
|
||||
**Layout law:** partition pages into files (nav / sidebar / main / footer / …) until each piece is simple; bind via `|type|slot|value|attrs|style|`. Do **not** build sites by HTML/CSS injection (`dom.raw` is escape hatch only).
|
||||
|
||||
**Related modules:** `ext/data` · `ext/security` · `ext/net`
|
||||
|
||||
```bash
|
||||
bash scripts/build-web-plugin.sh
|
||||
marqdo ext add web # optional install
|
||||
marqdo ext add web
|
||||
marqdo call ext/web/layout/index.mq.md rules --json
|
||||
marqdo run examples/marqdo-blog/serve.mq.md
|
||||
```
|
||||
|
||||
Hard rules: no author `ensure_plugin` / `compose_*` / `configure` junk drawer; View schema `|type|slot|value|attrs|style|` only; declared vs system routes via `inspect`.
|
||||
Hard rules: no author `ensure_plugin` / `compose_*` / `configure` junk drawer; View schema only; declared vs system routes via `inspect`; no `MARQDO_EXT=repo/ext` self-install.
|
||||
Reference in new issue
Block a user