Files
marqdo/examples/web-net-site/pages/new.mq.md

1.6 KiB

markup, type, view, route, title, import
markup type view route title import
occlusion web main /new Publish
component layout fs form table
ext/web/component/index.mq.md ../components/index.mq.md lib/fs.mq.md ext/data/form.mq.md lib/table.mq.md

This Document declares its actual /new route. Its terminal explanation stays in Markdown and its parent frame owns navigation, side rail and footer. The form is referenced by its explicit mounted id; the resource and real submission policy are defined outside this page.

main

返回 类型 说明
result list Shared site frame containing this page's explanation and mounted form reference

The server assembles these nodes once, then resolves request resources only while serving. Reading requires fs.read. The current session's CSRF token and return path are supplied by the form renderer, so the page cannot embed a stale startup token. Missing form registration is a real request error. The route remains discoverable from metadata rather than an implicit mutation chain.

We text = Read the page's terminal explanation and body = [Describe ordinary Markdown content](component.markdown(text=text, slot="intro")). We selected = Reference the actual mounted article form and controls = [Place that request resource](component.resource(value=selected, slot="article-form")) and body = [Keep instructions before the form](table.concat(a=body, b=controls)). Return Place this page within the shared recursive frame.