I love the Text::Template module for Perl and HTML. It allows me to k开发者_StackOverflow社区eep my HTML separate from my logic and I can use Dreamweaver to continually maintain the HTML design.
Don't be mislead by the name Text::Template, it is not like Smarty. Text::Template is a more elegant and simpler solution than the Smarty philosophy.
I think the TinyButStrong template engine may be the answer to my own question, but I welcome your feedback.
The most complete implementation of that in PHP is probably Smarty.
Though, in my opinion way overkill.
PHP itself is a template language, meaning you can embed PHP directly into HTML files, you might interested in https://stackoverflow.com/questions/62617/whats-the-best-way-to-separate-php-code-and-html
tinybutstrong
精彩评论