I strongly recommend, in the rare cases when writing HTML by hand is untenable, rolling your own…
I strongly recommend, in the rare cases when writing HTML by hand is untenable, rolling your own static site generator or template engine.
A template engine that cannot be written by a single developer in a few minutes is one that is too heavy (and liable to produce sites that are too heavy); rolling your own — and rolling a new one for different kinds of pages — keeps complexity down by keeping it exposed.