Sunday? One day to Christmass Eve?
mirade wrote:
(Thinking this is bad due to disk I/O)
That, I think, you can't avoid in any way - php reads its scripts from disk as well.
Me myself handle templates for each page with classes. The main engine of the page chooses apropriate class according to GET parameters - instantiates an object and runs the starter function for this class (the last one can be done in the constructor).
My templates are organized this way: first the template for the whole page (headers, footers, menus, container for the data). The class for the page tells the main template which subtemplate to include in the container.
All this is made with Smarty (why reinvent the wheel).