public function current() { $file = new \SplFileObject(current($this->files)); return $this->repository->getTemplate($file, $this->root); }