开发者

perl's text::template module ... what is the closest match for php?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜