fix: GAP-11 form slot mount and GAP-12 MARQDO_EXT import hint

compose_form/表单装配 can inject into intro via target/表单插槽; unresolved
ext/ imports hint to set MARQDO_EXT when unset.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-09 16:52:41 +08:00
1 parent cf9d96477b
commit fb6254e501
9 files changed
+278 -33

No files matched your search

+3 -2
View File
@@ -303,10 +303,11 @@ List pagination for the main bind: sets DB `limit`/`offset` and renders previous
## compose_form
+ `form`
+ `id`
+ `target`=None
Embed a form into the page main slot. `listen` auto-registers `GET|POST /_form/{id}` from page/route forms (optional `app.mount_form`).
Embed a form into the page main slot. Optional `target` / `form_slot` (CSS id, e.g. `#qd-note-form-mount`) injects the form **inside** that element in `intro` HTML instead of a sibling `.site-form` after `.main-intro` (GAP-11). Missing mount falls back to sibling. `listen` auto-registers `GET|POST /_form/{id}` from page/route forms (optional `app.mount_form`).
**> web_compose_form page=`self` form=`form` id=`id`**
**> web_compose_form page=`self` form=`form` id=`id` target=`target`**
## render
+ `db`=None
+3 -2
View File
@@ -285,10 +285,11 @@ SEO / OpenGraph 元数据表(`|键|值|`)。如 `title`、`description`、`c
## 表单装配
+ `表单`
+ `id`
+ `表单插槽`=None
将表单嵌入页面主区。`listen` 会从页面/路由上的表单自动挂载 `GET|POST /_form/{id}`(可选再 `挂载表单`)。
将表单嵌入页面主区。可选 `表单插槽`(元素 id,如 `#qd-note-form-mount`):把表单注入引言 HTML 内该节点,而不是 `.main-intro` 后的兄弟 `.site-form`(GAP-11)。插槽缺失时回退为兄弟节点。`listen` 会从页面/路由上的表单自动挂载 `GET|POST /_form/{id}`(可选再 `挂载表单`)。
**> web_compose_form page=`self` form=`表单` id=`id`**
**> web_compose_form page=`self` form=`表单` id=`id` target=`表单插槽`**
## 渲染
+ `数据库`=None