公共变量
使用方法:{$name}
| 变量 | 类型 | 说明 | 
|---|---|---|
| App | object | 系统主文件,可自行打印查看包含数据 | 
| host | string | 网站HOST | 
| baseUrl | string | 网站URL(相当于首页URL) | 
| cmspath | string | 网站根目录,若子目录安装则为子目录名称 | 
| title | string | 标题 | 
| keywords | string | 关键词 | 
| description | string | 描述 | 
| webConfig | array | 系统后台配置 | 
| tempConfig | array | 模板配置 | 
| tempUrl | string | 模板地址 | 
| route | array | (V2.5.8)当前路由 | 
| user | array | 用户,如:array[username,home,email,...] | 
| listType | string | 页面类型(除首页外),如list,author,search,date,tags | 
| listId | string | 页面ID值(除首页外), search时为搜索内容, tages时为标签ID, cate时为分类ID, special时为专题ID, logs时为文章ID, author时为用户ID, page时为单页ID, date时为日期字符串 | 
公共常量
| 常量 | 类型 | 说明 | 
|---|---|---|
| TEMPURL | string | 模板地址 |