Re:Show HN: Md2blog – A zero-config static site generator fo...
by cxr on Monday November 29, 2021 @05:25PM
(#29386075)
> 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.
Re:Show HN: Md2blog – A zero-config static site generator fo...
by john-doe on Wednesday December 01, 2021 @07:42AM
(#29403129)
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
Re:Show HN: Md2blog – A zero-config static site generator fo...
by schemescape on Monday November 29, 2021 @06:39PM
(#29386844)
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.
On the other hand, if I wanted to ship something similar with a built-in editing experience, then I think running it in the browser would be the way to go. The problem I saw there (last time I checked) was that I couldn't write directories of files to the file system from a web page (and I definitely want to store everything in the file system).