There are numerous ways you can go about solving this.
You could use a bash script to open all the files and prepend a header and append a footer. This will however change all the files.
You could also use Apache's
mod_rewrite
to add the header and the footer dynamically.If you take for example the page
/this/is/my/static/page.html
you could use
mod_rewrite
to change requests to:modifypage.php?url=/this/is/my/static/page.html
This
modifypage.php
file should then take care of adding the header and footer.A third solution is by using
Apache Handlers
.See:
http://httpd.apache.org/docs/2.2/handler.html
Use some macro in your editor to add header and footer to all the files.
I bet there are more ways, but this is what I can come up with from the top of my head. Good luck!
UPDATE I wrongly assumed you were using Linux/Apache. I will leave this answer here, because it might be useful. However I bet there are similar solutions for your webserver! Look into 'pre processing and filtering' for your webserver.