2024-04-26 22:53:51 +00:00
|
|
|
---
|
|
|
|
title: Why use a static site generator
|
|
|
|
date: 2024-04-23
|
2024-05-20 22:58:27 +00:00
|
|
|
permalink: daily/2024/04/23/why-use-a-static-site-generator
|
2024-04-26 22:53:51 +00:00
|
|
|
tags:
|
|
|
|
- software-development
|
|
|
|
- php
|
|
|
|
- sculpin
|
|
|
|
cta: ~
|
|
|
|
snippet: |
|
|
|
|
Why use a static site generator instead of a CMS?
|
|
|
|
---
|
|
|
|
|
|
|
|
[In February][yesterday], I spoke at the PHP South West meetup about Sculpin - a static site generator written in PHP.
|
|
|
|
|
|
|
|
Sculpin uses Twig, HTML and Markdown to generate static HTML files that you can upload to any web server.
|
|
|
|
|
|
|
|
You don't need PHP or a database server - making it simpler and cheaper to host compared to a CMS-powered site.
|
|
|
|
|
|
|
|
There's also no database for people to hack into and, as they're just static HTML pages, they are very quick to load.
|
|
|
|
|
|
|
|
The downside is that files need to be created and edited locally or editing Git files on GitHub, etc, as there's no CMS to log into.
|
|
|
|
|
|
|
|
Still, for some projects, static site generators are a great option.
|
|
|
|
|
|
|
|
For Drupal, there's Tome - a module that creates a static website from a Drupal installation, and something I plan to investigate.
|
|
|
|
|
|
|
|
[yesterday]: {{site.url}}/archive/2024/04/22/building-websites-with-php-and-sculpin
|