|Don't ask to ask, just ask
As a CGI developer almost exclusively myself, I have been working on an "end-all" solution like this for some time - when I saw your last post I immediately became interested. I am glad to see that it has come to frution, and it is very well done as well.
However, I am wondering: your %pages array - is that necessary? What exactly are you using it for? Because it seems to me that it is somewhat counter-productive: to add any new pages to the site you have to edit the code - I would think that you would want a script that would not have to be fiddled with at all, that ran without almost any intervention and that was extensible from the outside. Am I missing the point of your script (I may be way off)? It was just a simple question because I am very interested in this same subject and it seems that you have done a very good job.
r. j o s e p h
"Violence is a last resort of the incompetent" - Salvor Hardin, Foundation by Issac Asimov