Comment by cxr
4 years ago
> The problem I saw there (last time I checked) was that I couldn't write directories of files to the file system
You mean to an arbitrary path—why would this be necessary? The only write operation that most static site generators make use of is putting exactly one file tree somewhere after processing the input. The same thing is achieved by the browser's native Save File handling. If it were running in the browser, you'd generate a ZIP containing that file tree.
If your website is only text, you could have it as a single HTML file, so “Save As…” would be enough to export it. A working example: https://cadars.github.io/portable-php
Saving a single zip file would work, thanks. But it still seems like a cumbersome workflow in this case because you’d have to unzip to view/upload the site.
I do like the idea in other contexts, just not here.