public function compile() { $result = TagParserService::compile($this->_template, $this->_content); return $this->_compilePageVars($result); }
public static function compile($template, $contents) { $service = new TagParserService($template, $contents); return $service->render(); }