crunchsite

crunchsite

crunchsite is a command-line tool that “crunches” handwritten websites by performing otherwise tedious operations; e.g., tidying the output, applying smart quotes, basic templating.

Additionally, it can be used as a temporary webserver to debug your formatting with HTML Tidy in real time, and that can be useful for identifying weird formatting errors.

As you might expect, this website has been processed with crunchsite.

A demonstration of crunchsite templating a website

Why?

I like writing websites “manually”, but for maintainability, I wanted a way to use templates and whatnot without depending on a full static site generator or separating my content from the resulting pages (e.g., with Markdown). I wasn’t able to find a tool for that when I looked, so I made my own.

Is this useful?

It depends. If your use case specificaly involves formatting and templating an otherwise plain website, this provides a zero-configuration way to accomplish that. Otherwise, you should probably use a tool like Hugo or Eleventy to generate your pages instead.

Dependencies

All the heavy lifting is offloaded to the tools listed below.

Links