Files
marqdo/examples/web-site/pages/new.mq.md
T
cflmy 9331af78e2 release(2.8.0): 合入 CHANGELOG/README/发版说明/skills prove 任务;CI 链接指向 doc/releases
- CHANGELOG.md:v2.8.0 条目(中英双语);
- README.md:版本行 2.7.1→2.8.0 + 愿景第 6 条(知识可证明);
- doc/releases/v2.8.0.md:双语发版说明(亮点/用法/已知限制);
- skills/marqdo-dev/index.mq.md:新增 prove 任务(路径/目录模式/
  require_lean/json;参数用 + 行声明升参,check 与 narrative-ratio 通过);
- 设计文档 §12.5 标记已合入;发版链接统一指向 doc/releases/v2.8.0.md。
2026-11-18 10:29:26 +08:00

1.6 KiB
Executable File

markup, type, view, route, title, import
markup type view route title import
occlusion web main /new New article · Marqdo Web
layout intro articles component form table
../components/index.mq.md ../components/intro.mq.md ../components/articles.mq.md ext/web/component/index.mq.md ext/data/form.mq.md lib/table.mq.md

This Document explicitly declares /new. Its introduction ends in a Markdown leaf and its frame is shared. Request resources retain their own data or submission responsibilities. No startup page function initializes the database or starts another listener.

main

返回 类型 说明
result list Page-specific content and request resources within the shared frame

Assembly reads Markdown with fs.read and creates pure descriptors. The server resolves the mounted form using actual session CSRF and return context. It does not embed a stale startup token or a separate copy of validation rules.

Page structure stays stable while request-dependent resources observe current data and identity. A missing required resource remains a diagnostic rather than a fake successful response.

We body = Read this page's terminal introduction. We selected = Reference the same explicitly mounted article form and controls = [Retain current request CSRF and validation context](component.resource(value=selected, slot="article-form")) and body = [Keep instructions before the actual form](table.concat(a=body, b=controls)). Return [Place the page in its selected recursive frame](layout.frame(body=body, management=False)).