Hi Chris, Patrick --

I post on this topic with some reluctance.  Asking which templating
system is best is like asking which operating system is best -- or which
political party is best (or political system, I suppose).  It's Jihad,
baby!

OTOH, I've never met a flamethrower I didn't like.


> What's "best" depends on what your requirements are. As far 
> as I can tell,
> the big ones are Template::Toolkit, Mason, and 
> HTML::Template

One picky point:  Mason is NOT a templating system.  It is a programming
system.

If you're going to call Mason a templating system, you might as well
refer to Perl as a templating system:

  my $name = "Jesse";
  print "Hello, my name is $name\n";

Presto, blammo -- a new templating system!


The big players are Template::Toolkit and HTML::Template.  It's no
secret that I'm a fan of HTML::Template -- Sam and I worked together
when he wrote it, and my module, CGI::Application, uses it out of the
box (although it does support TT).  

I use HTML::Template because designers can't be trusted to set
variables.  Boolean logic is about all their simple minds can handle.
Anything which doesn't look like HTML is likely to cause them to have a
stroke.  Yes, I'm a programmer-snob and a fascist, and I like to take
sharp objects away from the gentle "creative" types.

Aside from the fact that HTML::Template uses less RAM and is faster than
TT, this is the foremost reason I continue to use it.

TTYL,

-Jesse-


--

  Jesse Erlbaum
  The Erlbaum Group
  [EMAIL PROTECTED]
  Phone: 212-684-6161
  Fax: 212-684-6226



Reply via email to