public function fetch($template = null, $compile_id = null) { ob_start(); try { $this->display($template, $compile_id); } catch (\Exception $e) { ob_end_clean(); throw $e; } return ob_get_clean(); }