模版引擎改进

This commit is contained in:
ThinkPHP
2013-05-15 14:55:03 +08:00
parent 90d7ec19e4
commit 04a30eeaba
2 changed files with 25 additions and 8 deletions

View File

@@ -60,10 +60,14 @@ class TagLib {
* @var object
* @access protected
*/
public $tpl;
protected $tpl;
protected $comparison = [' nheq '=>' !== ',' heq '=>' === ',' neq '=>' != ',' eq '=>' == ',' egt '=>' >= ',' gt '=>' > ',' elt '=>' <= ',' lt '=>' < '];
public function __construct($template){
$this->tpl = $template;
}
/**
* TagLib标签属性分析 返回标签属性数组
* @access public