Look at HTML::Mason before choosing a solutions. You might find it helpful. I have achieved staggering success using it for large scale, highly interactive web sites.
It follows a component model, it allows filtering of pages, it can automate headers, footers, navbars, etc.
It plays well with CSS. My sites are completely style-sheet driven. And since the pages are made of of simpler, generic components,; at the page level I almost never have to worry about styles (or headers, or menus, or event behavior).
It plays well with mod_perl and Apache::Session, making maintaining state a breeze.
It may not be the answer for you, but you should check it out before making a decision.
You can see it at MasonHQ.

-pete
Entropy is not what is used to be.

In reply to Re: CGI::Application, Templates, and CSS by dreadpiratepeter
in thread CGI::Application, Templates, and CSS 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.