Introduce web_style ABI (样式装配) so themes are GFM style tables
(|选择器|属性|值|, optional |媒体| column for @media) assembled by
functions instead of hand-written CSS strings — 文档即代码. The new
examples/marqdo-blog shows a full blog: card grid, dynamic /post/{slug},
tag archive, WebSocket live widget, and session-gated admin CRUD, plus a
smoke test (15 checks) and README.
Co-authored-by: Cursor <cursoragent@cursor.com>
783 B
783 B
title: db/index description: 打开 sqlite、建三张表、幂等种子。 导入 网页:ext/web/网页.mq.md import schema:schema.mq.md import seed:seed.mq.md
打开
store = > 网页.数据库 地址="sqlite:data/marqdo-blog.db" 字段 = > schema.posts 标签字段 = > schema.tags 关联字段 = > schema.post_tags
store.初始化 名=posts 字段=字段store.初始化 名=tags 字段=标签字段store.初始化 名=post_tags 字段=关联字段行 = > store.查询 表="posts" 上限=1
行store-
文章 = > seed.posts 标签 = > seed.tags 关联 = > seed.post_tags
store.插入 表=posts 行=文章store.插入 表=tags 行=标签store.插入 表=post_tags 行=关联store