public function render() { if (!$this->isCacheable()) { try { $content = File::readFile($this->path . $this->filename); } catch (Exception $e) { throw new RuntimeException("View [{$this->filename}] not found"); } $engine = $this->factory->resolveEngine($this->getRequireEngine()); $content = $engine->render($content); $this->cache($content); } return $this->renderContent(); }