template() template(boolean $islayout = false) : string 返回编译后的模板路径, 如果不存在则编译生成并返回路径. 如果文件存在且允许自动编译, 则对比模板文件和编译后的文件修改时间 当修改模板后自支重新编译 Parameters boolean $islayout 是否使用布局 Returns string — 返回编译后的模板路径
removeComments() removeComments( $str, $clear = false) 模板中第一行可以写exit函数防止浏览 删除行首尾空白, html javascript css注释 Parameters $str $clear
parseInclude() parseInclude( $str) 解析多个{include path/file}合并成一个文件 Parameters $str Examples 'debug_info'} {include 'debug_info.php'} {include "debug_info"} {include "debug_info.php"} {include $this->templateDir . $this->template} ** File not found : {include **