Static Site Generators
20th of June, 2019Static site generators are tools that generate static web pages/site from a very simple and expressive source.
With static site generators you can:
- Keep your content and design separately.
- Either choose an available theme, customize them or create it from scratch.
- Deploy them to any web server that can serve static data, a great and widely used example is github pages.
There are many site generators for building photo galleries like Expose, for writing documentations like gitbook, and many more.
Why do we need them
-
Performance:
A dynamic cms, like wordpress, processes and generate resource for every single resource. Processing may require accessing various server resources like databases. Whereas web site generated from static site generators are static files and require no extra processing.
-
Versioning:
With static site generators we can version our posts using any standard VCS, whereas with dynamic cms, your pages are hardly versioned (may be by creating backups).
-
Intuitive:
Site generators is a more intuitive way of writing posts, documenations and web sites.
-
Flexibility:
Using markup language like markdown provides great flexibilty to the writers to manage the content. Writers can later choose to create pdfs or mobi books from markdown using markdown converters like pandoc