tp5模板参数配置(模板静态⽂件路径)tp5 模板参数配置(模板静态⽂件路径)
// 模板页⾯使⽤ <link rel="stylesheet" type="text/css" href="{:config('__STATICADMIN__')}/h-ui.admin/css/style.css" />
'__STATICCSS__' =>'/static/Css',
'template'              => [
// 模板引擎类型⽀持 php think ⽀持扩展
'type'        => 'Think',
// 默认模板渲染规则 1 解析为⼩写+下划线 2 全部转换⼩写
'auto_rule'    => 1,
// 模板路径
'view_path'    => '',
// 模板后缀
'view_suffix'  => 'html',
// 模板⽂件名分隔符
'view_depr'    => DS,
// 模板引擎普通标签开始标记
'tpl_begin'    => '{',
// 模板引擎普通标签结束标记
'tpl_end'      => '}',
// 标签库标签开始标记
'taglib_begin' => '<',
// 标签库标签结束标记
'taglib_end'  => '>',
/
/ 静态⽂件路径替换
     // 模板页⾯使⽤<link rel="stylesheet" type="text/css" href="__ADMIN__/page.css">
'tpl_replace_string' =>  [
'__ADMIN__'    => '/static/Admin',
css常用模板'__Home__'      => '/static/Home',
'__Wap__'      => '/static/Wap',
'__Api__'      => '/static/Api'
]
]
// <link rel="stylesheet" type="text/css" href="__ADMIN__/page.css">