in reply to HTML::Template vs. Template::Toolkit vs. ??

Strictly Template::Toolkit here because it allows you to put logic inside or outside of templates as you like it. I use DBIx::Class a lot and I can just pass a recordset-object to the template and have the template loop over it and do all kind of things to it, such as sub-totalling, adding color depending on some field-values, ....

I mainly use it on non-HTML templates: the perl-script gets the data out of whatever storage it is in, hands it to the template which writes a nice LaTeX-file which then gets rendered by the TeX engine into a über-nice PDF report.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: HTML::Template vs. Template::Toolkit vs. ??