in reply to Follow-up to my Template question

Of the ones you mention, I have only used HTML::Template and Template Toolkit. I think that you will find HTML::Template to be ridiculously easy to use and, in fact, I have written a short tutorial on its use. Template Toolkit is more difficult to use (and I've found the documentation to be a tad confusing at times), but it's much more useful in the long run.

Choosing a templating system also depends upon what you want to do. If you're just building a small site of about 20 or 30 pages, HTML::Template should be fine. But if you're building something larger, or likely to get larger, bite the bullet and learn one of the more complicated, but scaleable systems. We had considered using HTML::Template at our work and while it would definitely be an improvement over our current system, we realized that it was too limited. Don't take the easy path now if you're likely to regret it later!

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

  • Comment on (Ovid) Re: Follow-up to my Template question

Replies are listed 'Best First'.
Re: (Ovid) Re: Follow-up to my Template question
by SamQi (Beadle) on Dec 24, 2000 at 02:21 UTC

    Another templating module that I've found is CGI::FastTemplate. It's waaay simple...probably not good for enterprise sites, but it works for my itty-bitty projects.

    There's my $0.02.

Re: (Ovid) Re: Follow-up to my Template question
by doran (Deacon) on Dec 25, 2000 at 00:34 UTC
    I use HTML::Template all the time and it's really nice at making easy things simple.

    I find it's really good for when you have non-programmers writing the HTML. You can tell them where to drop the <tmpl var> tags and let them design the rest.

    But I agree with Ovid that it may not be the best tool for big complicated sites. While HTML::Template supports looping and if/else in the templates, it starts getting kinda hairy if things get too complicated. This isn't a problem for my application (yet ;)), so HTML::Template is perfect for me.

    Good luck