public function handle(SplFileInfo $file)
    {
        $this->file = $file;

        $this->viewPath = $this->getViewPath();

        $this->directory = $this->getDirectoryPrettyName();

        $this->appendViewInformationToData();

        if (@$this->viewsData['enableBlog'] && @$this->viewsData['postsListView'] == $this->viewPath) {
            $this->prepareBlogIndexViewData();
        }

        $content = $this->getFileContent();

        $this->filesystem->put(
            sprintf(
                '%s/%s',
                $this->prepareAndGetDirectory(),
                ends_with($file->getFilename(), ['.blade.php', 'md']) ? 'index.html' : $file->getFilename()
            ),
            $content
        );
    }