public function generateIndex($outputDir) { if ($meta = json_decode($this->filesystem->fileGetContents($outputDir . '/' . self::META_FILE), true)) { $this->filesystem->dumpFile($outputDir . '/index.html', $this->templateEngine->render('index', array('data' => $meta))); } }