- coders prefer something like smarty, because they can do code in the template, although others consider it big, bloated and slow (and reinvention of the wheel)
- I prefer PEAR::HTML_Template_IT, because there is NO logic in the template, only definition of content blocks.
- One nice approach is to use PHP all the way, but draw a line between business-logic and presentation logic.
- Some are preferring XSLT, since they are well-defined, well-known, widely spread and thus reusable knowledge.
For those who care about speed, here's a site benchmarking some of the most popular template engines
In case you want to stick to Pear-only, here's a quick link-list to different PEAR template packages
...and actually all I wanted to write down was this:
Installing PEAR::HTML_Template_IT package:
(This is mostly for myself in case I need to do this again)
Code: Select all
sudo pear channel-update pear.php.net
sudo pear install HTML_Template_IT