News for hackers. Stuff that matters.
Re:Sculpin – PHP Static Site Generator by detaro on Sunday October 11, 2015 @05:03PM (#10371019)
Time and efficiency is the main point. Take a blog: if you write it entirely by hand and add an article, you now have to:

* include it in the main page

* update the RSS feed

* include it in all the category/tag listings

* if you have prev/next article links, you have to add it to the last article

* included images need to be prepared for web

* if you show a code example, you might want to syntax-highlight it

If you want to change the design, you have to touch all pages (or do search/replace and hope that it doesn't mess anything up)

...

Or you could have a program that you feed text + raw images for your articles and that automatically generates all the necessary files/changes old ones accordingly, based on this input and templates.

The result then can be served by web server that doesn't speak any server-side language.

There are no comments on this comment yet.