protected function compileTemplate($template)
	{
		$template = $this->normalizer->normalizeTemplate($template);

		// Parse the template
		$ir = TemplateParser::parse($template);

		// Serialize the representation to PHP
		$php = $this->serializer->serialize($ir->documentElement);
		if (isset($this->optimizer))
		{
			$php = $this->optimizer->optimize($php);
		}

		return $php;
	}
protected function compileTemplate($template)
	{
		$template = $this->normalizer->normalizeTemplate($template);

		// Parse the template
		$ir = TemplateParser::parse($template);

		// Serialize the representation to PHP
		$php = $this->serializer->serialize($ir->documentElement);
		if (isset($this->optimizer))
		{
			$php = $this->optimizer->optimize($php);
		}

		return $php;
	}
protected function compileTemplate ( $ template ) { $ template = $ this -> normalizer -> normalizeTemplate ( $ template ) ; // Parse the template $ ir = TemplateParser :: parse ( $ template ) ; // Serialize the representation to PHP $ php = $ this -> serializer -> serialize ( $ ir -> documentElement ) ; if ( isset ( $ this -> optimizer ) ) { $ php = $ this -> optimizer -> optimize ( $ php ) ; } return $ php ; }
Compile a template to PHP

@param  string $template Original template
@return string           Compiled template
Compile a template to PHP