> Much like how jquery keeps the javascript out of the HTML, it's so > much cleaner to keep PHP out of the HTML as well. > > Have a look at the Smarty templating system for PHP. It's awesome.
that's absolutely pointless, to start a new templating-engine-for-php- rant ... ;) php itself is a templating-language, it's fine to divide your application in tiers like MVC but still php is absolutely wonderful as *the* language to be used in the view. unless you have stupid UI- designers who think it's easier to learn yet-another-ugly-templating- language than to use simple php-syntax... i would stick to multi-dimensional arrays pushed via json, which is fairly lightweight. just my 0.02 euros ...