I have been using HTML::Template for years and for the most part have been very happy with it. I like how it is simple, keeps the logic OUT of the templates and does a great job of separating code from design. I have never had a performance problem that I couldn't solve.
But, I have noticed that HTML::Template has not been updated for a couple years and was wondering if it had been abandoned because people are favoring something else (or if it is just that stable!).
I took a brief look at Template::Toolkit and at a glance it seems to work *nearly* the same way at the basic level. But, for example, the block directive "foreach" seems to take some of the programming logic out of the program and into the template (I'm not a fan of that, I don't use HTML::Template::Expr).
Oh man, after re-reading this I could see this thread turning bad. I am not trying to start a flame war. I really just want to know what people are using and if there is any solid reason (other than personal opinion) to consider switching from HTML::Template.
Thanks for your insight!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.