模板输出替换
支持对模板文件输出的内容进行字符替换,定义后在渲染模板或者内容输出的时候就会自动根据设置的替换规则自动替换。
如果需要全局替换的话,可以直接在template.php
配置文件中添加:
'tpl_replace_string' => array( '__LIB__' => '/theme/index/lib', '__IMG__' => '/theme/index/img', '__CSS__' => '/theme/index/css', '__JS__' => '/theme/index/js', '__TPL__' => '/template/', )
替换规则严格区分大小写