/** * @{inheritDoc} */ public function fetch($path, array $data = []) { $file = \Bloge\globPath($this->path($path)); if (!is_file($file)) { throw new NotFoundException($path); } return \Bloge\renderData($file, $data); }
/** * @{inheritDoc} */ public function fetch($path, array $data = []) { $file = \Bloge\globPath($this->path($path)); if (!is_file($file)) { throw new NotFoundException($path); } return ['content' => file_get_contents($file)]; }
/** * @{inheritDoc} */ public function fetch($path, array $data = []) { $file = \Bloge\globPath($this->path($path)); if (!is_file($file)) { throw new NotFoundException($path); } return \Bloge\frontMatter(file_get_contents($file), static::SEPARATOR); }