I did this. Had a header template, a footer template and a bunch of pages. My build script was basically ‘for page in pages cat header page footer > ouput’. Worked fine for its purpose (which was limited in scope).
That's just about what mine does as well, except pages will inherit headers above them in the directory structure, so I could make the top bar pretty without JS.