I've created a couple of production web sites that way. I used htp, which allows me to create multiple pages with the same layout by using a mechanism similar to C's #include. This is used at development time, so the Web pages generated are all static (no server-side includes), but by editing a single file and "recompiling" I can change the layout, look and feel of the entire web site.
https://sourceforge.net/projects/htp/files/