Perhaps a stupid question but isn't that what HTML was designed for? It doesn't even require a generator.
Perhaps a stupid question but isn't that what HTML was designed for? It doesn't even require a generator.
A static website generator like this allows you to make a blog (for example) and update content like most-recent-10-post lists (also for example) only when you actually add a new post. Thus no additional time is required on the fly.
I might add that there is an extension for flask (which I normally think of as dynamic) called Frozen-Flask which also allows a flask-built site to become a static site. This probably exists for django as well, but I'm less familiar with django than flask.
Software like this allows you to create templates and generate multiple pages with different content.
This can be achieved with server-side scripting languages. However, it is slower than static HTML. So if the content doesn’t change often, generating static HTML might be the eay to go.
Also, applying syntax highlighting to code fragments, doing the right thing around pictures, e.g. set explicit size, and many other seemingly trivial but tedious things.
In short, static site generators remove the legwork from static HTML.