Thats maybe a little unfair, but only a little!

I too point people to HTML::Template, not because it is better but because it is much simpler, and to be totally honest, it is all that most applications require. Template Toolkit is great and Andy Wardley has done a terrific job with it, there are also a number of 'plug-in' modules that go with it. If you want something to do more than just deliver HTML then Template Toolkit is worth a serious look.

As for me, I looked at it. Got scared by the degree of complexity and ran away! Went back a few months later and still had the same thoughts. It has a steep learning curve. HTML::Template, on the other hand, is much simpler and you can master it in a day for doing the sort of things youare talking about.

jdtoronto

PS I have another project coming up shortly where I feel that TT will be suited and I will use it then. For now I am serving up stuff from a database and HTML::Template does everything I need.


In reply to Re: Re: Re: Re: Re: pulling content from db - is it a good idea? by jdtoronto
in thread pulling content from db - is it a good idea? by kiat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.