Resolve /_part against home or routed pages.

Stamp _route on app.route pages and emit {path}/_part/{id} slot sources so partials refresh the correct page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-12 09:05:50 +08:00
1 parent b09538d242
commit 02b3dfab48
8 files changed
+137 -16

No files matched your search

+1 -1
View File
@@ -198,6 +198,6 @@ Register `GET|POST /_form/{id}` for listen when the form is not already embedded
## listen
Serve `/`, routed pages, `/_part/{id}`, `/_form/{id}` (from mounts + page embeds), and optional `/admin`.
Serve `/`, routed pages, `/_part/{id}` (home) and `{path}/_part/{id}` (routes), `/_form/{id}` (from mounts + page embeds), and optional `/admin`.
**> web_listen app=`self`**
+2
View File
@@ -188,4 +188,6 @@ description: 官方网站类(中文)。表格 + 方法;不写袋式胶水
## 监听
提供 `/`、路由页、首页 `/_part/{id}`、路由 `{路径}/_part/{id}`、`/_form/{id}`,以及可选 `/admin`。
**> web_listen app=`self`**