Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the old one-liner form, and migrate lib/ext/examples/tests/docs accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
511 B
511 B
title, description, import
| title | description | import | ||
|---|---|---|---|---|
| web.use middleware smoke | First-class middleware via web.use (replaces configure junk drawer). |
|
main
headers =
| header | value |
|---|---|
| X-Content-Type-Options | nosniff |
| X-Frame-Options | DENY |
pg = > web.page title="use-smoke"
app = > web.app page=pg
app = > web.use app=app middleware=headers
mw = middleware
sec = security
sec
print text=use-ok
print text=use-fail