Your (long) message would be better asked on the php-general list so that poor slobs like me can answer it instead of taking up valuable developers' time.
The short answers to your questions: - Smarty or something similar can handle "pre-compiling" (google for "PHP templating") - If your IDE doesn't support nested blocks then get a better IDE - The DOM extension is good for building XML documents (see PHP manual) -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
signature.asc
Description: OpenPGP digital signature