For some places, it's a large fence: the artists, designers, attorneys, etc. don't touch the perl code, and the developers do not affect the "look and feel" (e.g. the HTML). Of course, there are times when you need to communicate with the other group, especially for large changes, but in general in keeps everyone happy. It's kind of like having a subroutine in embedded in the HTML - the designers put a call to the subroutine in (say, to get a list of phone numbers) and the programmer promises to produce that list of phone numbers wherever that template is called.

Template systems at their best function as a contract - if they (the HTML designers) give this template, the developer will promise that it will get replaced by exactly *this* and *that*: no more, no less. It really frees the developer from a lot of finger pointing and blame. As long as their code honors their end of the contract, they cannot be blamed for anything regarding the look (and, if a good contract, even the functionality) of a site. So they can work on coding, instead of being blamed for a display problem that is finally linked to the lack of a closing TABLE tag by some designer. :)


In reply to Re: Why use Templates at all? by turnstep
in thread Why use Templates at all? by extremely

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.