Aeons ago, I wrote a language called SWL that served this exact purpose. It's an condensed HTML dialect, similar to later inventions like markdown and textile, but designed for programming and minimizing markup. It takes a template from the directory context and generates HTML from all the SWL files.
http://cixar.com/swl/