Compiling to html for speed - staying in synch
Posted: Fri Jan 15, 2010 2:06 pm
I have inherited an well organized site that I'm trying to figure out. The code is well organized and intelligently commented(!)
One of the smart things I see is some of the heavily used stuff like header.php which displays the banner and navigation, exists as both header.php and header.html. So here's the question. Generally, header.html is include_once all over the place.
I want to make changes to the navigation, say add a new tab. I am thinking that there is an automated way to generate header.html from header.php, but I'm not sure how that is typically done. I'm hoping there is a handy tool, or do I have to load the page, view source, then manaually cut/paste?
Thanks,
Eric
One of the smart things I see is some of the heavily used stuff like header.php which displays the banner and navigation, exists as both header.php and header.html. So here's the question. Generally, header.html is include_once all over the place.
I want to make changes to the navigation, say add a new tab. I am thinking that there is an automated way to generate header.html from header.php, but I'm not sure how that is typically done. I'm hoping there is a handy tool, or do I have to load the page, view source, then manaually cut/paste?
Thanks,
Eric