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

Display logic is also not the same as business logic. The part of using a template system that has bothered me the most, and caused me to switch to T::T, was that I had to still massage the data so that the display layer could deal with it in an efficient manner.

Since I have switched to T::T, I now leave the data in a structure that represents it well, and let the display logic handle the translation into what it needs. Now the data generation is (fairly) stable, and presentation is handled in the template.

That being said, I agree with jeffa's comment above that the templates are still code, just with limited access to the data provided.

--MidLifeXis

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