varname则是libtemplate中$target,使用如下:$tpl->set_file;...$tpl->parse;$tpl->savetofile;相信懂libtemplate的读者很容易理解这些.//清除已赋值数组functionrenew(){$this->varkeys=array();$this->varvals=array();$this->file=array();}这样就可以清除前面模板分析的影响.2,实现静态输出.如果输出的是单文件正如上面的一个例子.$tpl->set_fi