--- title: web zh API smoke description: Offline Chinese 网页.mq.md assemble (no listen). 导入 网页:ext/web/网页.mq.md import nav:web-fixtures/components/nav.mq.md import side:web-fixtures/components/side.mq.md import foot:web-fixtures/components/foot.mq.md import articles:web-fixtures/db/articles.mq.md import json:lib/json.mq.md --- # main **store = > 网页.数据库 地址="sqlite:web-fixtures/data/zh-smoke.db"** **schema = > articles.schema** > `store`.初始化 名=articles 字段=`schema` > `store`.执行 sql="DELETE FROM articles" > `store`.执行 sql="DELETE FROM sqlite_sequence WHERE name='articles'" `layout` = | 组件 | 样式 | |------|------| | nav.`nav` | | | side.`side` | | | foot.`foot` | | `index` = | 属性 | 值 | 样式 | |------|-----|------| | title | articles.`articles`.title | | | body | articles.`articles`.body | | `seed` = | title | body | |-------|------| | 中文种子 | 正文 | > `store`.插入 表=articles 行=`seed` **page = > 网页.页面 标题="中文烟测" 引言="
关于
"** **app = > `app`.路由 路径="/about" 页面=`about`** **routes = > json.get value=`app` key="routes"** **routed = > json.get value=`routes` key="/about"** 1. `routed` > print text=route-ok 2. * > print text=route-fail