$ Dev Notes

Hello, World: Why I Built My Own Static Site Generator

· 1 min read pythontooling

Every blog starts with a choice: pick a framework, or write the simplest thing that works. This one is a single Python file using only the standard library.

How it works

Drop a .md file into posts/, then run:

python3 build.py

The script renders everything into public/, ready to host anywhere.

Features

def greet(name: str) -> str:
    return f"Hello, {name}!"
PieceChoice
LanguagePython 3
DependenciesNone
OutputStatic HTML/CSS

Simplicity is a prerequisite for reliability. — Edsger W. Dijkstra

Read more on the Python docs.