protected function renderDefaultTemplate($template, $params=[]) {
		if(!file_exists($template)) {
			$template = $this->solveTemplatePath($orig = $template);
			if(!file_exists($template))
				throw new \Exception('The template file "'.$orig.'" could not be found.');
		}

		extract($params);

		ob_start();
		include($template);
		return ob_get_clean();
	}