示例#1
0
文件: Engine.php 项目: kovkus/r-cms
 public function __construct()
 {
     $this->parser = new Parser();
     Macros\CoreMacros::install($this->parser);
     $this->parser->addMacro('cache', new Macros\CacheMacro($this->parser));
     Macros\UIMacros::install($this->parser);
     Macros\FormMacros::install($this->parser);
 }
示例#2
0
 public function __construct()
 {
     $this->parser = new Parser();
     $this->compiler = new Compiler();
     $this->compiler->defaultContentType = Compiler::CONTENT_XHTML;
     Macros\CoreMacros::install($this->compiler);
     $this->compiler->addMacro('cache', new Macros\CacheMacro($this->compiler));
     Macros\UIMacros::install($this->compiler);
     Macros\FormMacros::install($this->compiler);
 }
示例#3
0
 public static function installWithAutoExtend(Latte\Compiler $compiler, $autoExtend = NULL)
 {
     self::$autoExtend = $autoExtend;
     parent::install($compiler);
 }