

If it wasn't for a recent release, then you'd assume the project was dead! At the time of writing, the latest blog post was August 2019. Prior to November 29th 2020, the most recent tweet was in April 2020. That may happen as part of a production build, but could lead to a big overhead if not.Ī few things which may be off putting for people is the lack of activity around the project. It also listed minify CSS as a task to undertake. One thing which came out of lighthouse audit tests of a simple sample post (base styling and lipsum text) was to remove unused CSS.
#SPRESS TWIG GENERATOR#
This is unfortunate as the idea behind a static site generator is to improve website performance.

Fortunately the process for that is documented pretty well.īecause the base blog skeleton comes bundled with Bootstrap, the generated CSS is pretty big (nearly 600kB). I found it fairly easy to get up and running, but with a few changes needed in places to get URLs how I would want them i.e. It uses Symfony Bundles to allow you to extend the functionality in a way which may be familiar to you already, and builds pages using Twig templates. Sculpin is written for PHP 7 and is quickly installed using Composer. In this post, I'm going to take a look at some of the static site generators written in PHP, and outline some pros and cons of them. Couple that with a CDN and cache like Cloudflare, then those files can be cached closer to your end user, and speed up the site even further. This means when a request comes in to the web server for a resource, it can directly serve the page, with no processing via a database or similar. They do this by building the HTML that would otherwise be built by a CMS when a page is requested and storing that as a file with the full content. I've previously loosely covered static site generators and mentioned that they can bring performance benefits to a site.
