Hi People! I've been trying to "refine" my perl scripts so that there is no HTML tags, etc inside them and have been playing around with the HTML::Template module, but am totally confused at this point. My confusion lies in the following two areas -

The options that I see for keeping HTML and Perl scripts seperate are -

1. To use HTML::Template and have X number of template files i.e. one template for each page I want to show. My question here is - is this correct? Do I actually have to have multiple templates?

2. To spit out HTML gook from inside the script. With respect to the above method this looks easier as atleast my HTML is all in one area .... that is I dont have to modify 15-20 template files.

I guess what I'm trying to say is thT I don't see the benefit of using HTML::Template if I have X number of templates, where each has to be edited manually later.

I'm very confused .... need some guidance and knowledge.

Thanks, SP

In reply to HTML::Template Question / Confusion by Anonymous Monk

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.