in reply to HTML::Template vs. Template Toolkit

If you are not using mod_perl for the dynamic CGI, Template Toolkit may not be the better of the two, because it's slow to load and parse a page (it actually creates perl code); further calls to the same template are speedy, but until you have those calls made, it takes a while. In a non-mod_perl environment, you have no way to store this nice little cache, as opposed to where you can have a mod_perl global sit and cache all TT2 page requestions. HTML::Template is faster but not as powerful, but I think in your situation, it will work better since it merely just in-place regexing, which will be faster in the long run.


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
  • Comment on Re: HTML::Template vs. Template Toolkit