public function parse($template)
	{
		$dom = TemplateLoader::load($template);

		$ir = new DOMDocument;
		$ir->loadXML('<template/>');

		$this->createXPath($dom);
		$this->parseChildren($ir->documentElement, $dom->documentElement);
		$this->normalizer->normalize($ir);

		return $ir;
	}
public function parse($template)
	{
		$dom = TemplateLoader::load($template);

		$ir = new DOMDocument;
		$ir->loadXML('<template/>');

		$this->createXPath($dom);
		$this->parseChildren($ir->documentElement, $dom->documentElement);
		$this->normalizer->normalize($ir);

		return $ir;
	}
public function parse ( $ template ) { $ dom = TemplateLoader :: load ( $ template ) ; $ ir = new DOMDocument ; $ ir -> loadXML ( '<template/>' ) ; $ this -> createXPath ( $ dom ) ; $ this -> parseChildren ( $ ir -> documentElement , $ dom -> documentElement ) ; $ this -> normalizer -> normalize ( $ ir ) ; return $ ir ; }
Parse a template into an internal representation

@param  string      $template Source template
@return DOMDocument           Internal representation
Parse a template into an internal representation