(Wee, more rants about all-loved modules,hopefully this one will make a little more sense) Basically my questions is, why use templates any more? My understanding, is that templates are basically like php/perlscript(etc..), allowing you to embed code into static html pages, then parse the page, allowing dynamic content. I guess the real question is, why is this needed any more? I could see back when people were still producing horribly abused, mangled, twisted, and just generally crappy html to make their nice neat designs (most notable abusing tables..). I could see if you had a page consisting of 3000 table tags you would want to seperate out the 'content' and the 'style'. But that leads me to today. No longer do we have to horribly mangle html. Which leads me to my arguement against templates. Namely: CSS. Use html exactly as its meant to be used, as a 'definition language'. You can just say, my code will produce output with the links in A tags, and the body in P tags. Then the 'client' can use style sheets to display the information however he wants. Think about it. (i guess there may be a few specific cases where a template is the best, but i frankly cant think of any now so..)

In reply to Why use templates? by BUU

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.