protected function renderToHtml() {
		extract($this->data, EXTR_SKIP);
		ob_start();
		set_error_handler([$this, 'handleError']);
		include $this->template;
		restore_error_handler();
		$html = ob_get_clean();
		return $html;
	}