Live data from Hacker News

HTMLy: Databaseless Blogging Platform (Flat-File Blog)

github.com

61–66 of 66 posts

Re: HTMLy: Databaseless Blogging Platform (Flat-File Blog)

#61
post #16

we can add it to the list: http://staticsitegenerators.net/ :)

I don't think it's a static generator as there's no compilation step. Rather, they just replaced the database with file lookup. The server still needs a php interpreter.

Should be added in http://staticsitegenerators.net/

https://github.com/jaspervdj/static-site-generator-compariso...

Currently, this listing is for only projects that are either or both a Flat File CMS and Static Site Generator, but not for projects which are only Dynamic Servers (such as WordPress and Ghost).

HTMLy is flat file cms :)

Re: HTMLy: Databaseless Blogging Platform (Flat-File Blog)

#63
post #24
post #20

Replacing the database with flat files? We have gone full circle, haven't we. I can think of a lot of disadvantages with not using an actual database. What's the benefit of going back to flat files?

I wonder what simple blogging / CMS engines are out there that use sqlite as the backend. This also has the benefits of simple backups without the complexity of another process running. Most (if not all) webhosts will have this baked into their PHP installs.

Perhaps using sqlite as the "backed" in that you build it like any other blog, so you get the simplicity of building it out, using one good sql framework etc.

But then, when you click "post" it rips through the database using a library of markdown -> HTML or whatever the case may be. Thhere can't be must overheard to a single include to pull in the html, but you could render the enter page. I just can't see php falling down too much with a few includes and functions being called to generate a header, the included rendered HTML, and a footer with some design elements.

It's not much fun building your own database out of flat files. I cut my teeth on a Mac only system that more or less only talked to Filemaker, which was only as fast as the actual screen could redraw and search out the data. It could be painfully slow.

In a way I am glad, as I learned how to do things and think differently when most were just running a "select * from foo where bar = 'x'" which was a 15 minute luxury I didn't have. There were no joins, no tables, you actually ran applescripts on the database and it returned the data somehow back to a web server on the Mac.

So we used the database on the backend, where admins could be more patient, or do more intricate things, but almost always generated out some HTML, so in the end, the site was semi-dynamic. I think I was doing "caching" of data as a result almost 15 years ago.

The rule was, no more than 2 database calls per page, ever. And you couldn't do things like update foo set name = 'me' where id = 1, because there was no exposed notion of a record id, it was internal, so you had to select name from foo where name = 'whatever' which would return the name, but also a RedID value, which you then got to run another query to update foo set name = 'me' where if =

Made me think a bit different.

Re: HTMLy: Databaseless Blogging Platform (Flat-File Blog)

#66
post #31

well, let me add my old project http://flatpress.org it does feel dated, as it uses BBCode, but there plugins for Markdown. If I had the time, I would make MD the default nowadays.

That is a great project, before make this things I already try yours :)
Post reply on HN