http://www.bye18.cn/?p=395
http://hi.baidu.com/hljyjyjy/blog/item/d1d46008c8b062c73ac763e4.html
<!--{template header}-->
模板执行php代码测试:<br />
<!--{eval echo date('y-m-d',time())}-->
循环测试:<br />
<!--{loop $testarray $k $v}-->
{$k}:{$v} <br />
<!--{/loop}-->
-----------------eval echo 函数测试 --------
<!--{eval echo testfun()}-->
最方便的功能在于:
在function template里找到
if(!file_exists($objfile)) {
替换为
if(!file_exists($objfile)||filemtime($objfile)<filemtime(S_ROOT.'./'.$tpl.'.htm')) {
这样就会自动发现模板有修改则更新缓存了,方便很多了。