in reply to Why use Templates at all?

We use templates where I work, so my lunatic boss can edit the html (or "web" as he calls it *giggle*) without destroying our dynamic content. As a natural but unexpected result, our entire site ended up being themable.

Replies are listed 'Best First'.
Re: Why use Templates at all?
by Dominus (Parson) on Dec 26, 2000 at 16:17 UTC
    Says jettero:
    so my lunatic boss can edit the html without destroying our dynamic content.

    That's why I use them. When I was at Time-Warner back in 1994, I got tired of having the designers come to me to ask me to change the CGI programs so to make the text blue instead of green. And of course I didn't trust them to edit the program directly. I invented Text::Template so that I could tell them to edit the template files and leave me alone.

    It worked, too.

      <aol>Me Too</aol>

      At BlackStar.co.uk we need fairly fascist^H^H^H^H^H^H^Hstrict QA/revision control systems. By templating all the markup away from the code it makes this process several orders of magntitude easier.

      Designers can modify what any page, or component used across several/many pages, looks like without having to go through the code review / release cycle, and coders can create code that isn't full of HTML, thus making the code much easier to read and maintain.

      Tony