I had a suspicion that
UrlToolkit might be the answer
Basically what I want to do is emulate SSI to "sandwich" a "contents" file between a pre-defined header and footer - without having any
hooks in the "contents" file.
So page1.some extension will get merged with header & footer via encapsulator.cgi. I'm going off to try to make it work!
Thanks!