Files
marqdo/ext/web/templates/starter/app.mq.md
T
cflmyandCursor 8041a2274c Add ext/web with table-driven pages and polished admin CRUD.
Ship the web L1/plugin stack (bind tables, variable-named db.init, live render) and tighten the admin UI with sidebar, toolbar, forms, and activity log.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 11:42:17 +08:00

1.1 KiB


title: ext/web starter app description: Variable name = table name; page methods bind regions.

ext/web/web.mq.md


main

web.load_env path=.env web.ensure_plugin

nav =

前端变量 后端数据库 绑定css样式
首页 /
管理 /admin

side =

前端变量 后端数据库 绑定css样式
全部文章 /
管理后台 /admin

articles =

字段 类型 可空
id integer false
title text false
body text true

主体 =

前端变量 后端数据库 绑定css样式
title title card-title
body body card-body

*db = > web.db * *articles = > db.init name=articles fields=articles *

*page = > web.page title=Starter * *page = > page.nav table=nav * *page = > page.sidebar table=side * *page = > page.main table=articles bind=主体 layout=cards intro="

Starter

" *

*app = > web.app page=page db=db admin=True *

app.static dir=./static app.listen