You can use other approach, thus using SSI (Server Side Includes)
then the format of each pagexxx.html is
content of the page goes here
then in apache config you need definition for supporting SSI in html (and
not only shtml) pages.
We're using both approach in different web applications. for the environment
you're in the sample I think SSI will work very well.
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.