How to deal with this? Should I try and maintain the two separate templates.

With care in defining the templates for the header, left and right columns, it should be possible to "mix n match" those components by concatenating the templates, or concatenating the results of expanding the templates.

Your generating script then looks something like this pseudo-code:

if needsHeader load header template expand header template output expanded header to file endif if needsLeftColumn load LeftColumn template expand LeftColumn template output expanded LeftColumn to file endif if needsRightColumn load needsRightColumn template expand needsRightColumn template output expanded needsRightColumn to file endif ...

This way, you specify your pages at a higher level in terms of the subcomponents that need to appear on the page, and your generation script processes that higher level description by loading and expanding the appropriate mix of templates.

It does require care in defining the subcomponent templates, but with the use of css, and especially css2, it can make for a very concise page specifications, if the nature and layout of the data you are presenting is, or can be, standardised.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^2: Off-Line Content Management Scheme? by BrowserUk
in thread Off-Line Content Management Scheme? by ozboomer

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.