Ejemplo n.º 1
0
	public function __construct()
	{
		$this->parser = new NParser;
		NCoreMacros::install($this->parser);
		$this->parser->addMacro('cache', new NCacheMacro($this->parser));
		NUIMacros::install($this->parser);
		NFormMacros::install($this->parser);
	}
Ejemplo n.º 2
0
	public function __construct()
	{
		$this->parser = new NParser;
		$this->compiler = new NLatteCompiler;
		$this->compiler->defaultContentType = NLatteCompiler::CONTENT_XHTML;

		NCoreMacros::install($this->compiler);
		$this->compiler->addMacro('cache', new NCacheMacro($this->compiler));
		NUIMacros::install($this->compiler);
		NFormMacros::install($this->compiler);
	}