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); }
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); }
public static function installWithAutoExtend(Latte\Compiler $compiler, $autoExtend = NULL) { self::$autoExtend = $autoExtend; parent::install($compiler); }