Cool idea. However, templating systems are great. By being able to make components that get reused throughout the site you can change the look of the site quickly and consistently if you want to.

Nothing in most template systems requires 1 page -> 1 file. Most of my recent experience is with Mason and I have made pages that generate themselves differently depending on which step in the process this is.

However, I have more recently bought into the component model that Mason allows and have started breaking up pages into multiple smaller re-usable chunks. So I no longer try to condense multiple pages down into 1 file (unless it is a simple submit page that shows the status of the submit on the second viewing) and I have found that this makes things much simpler. It is easier to write and debug since I can usually determine which file the problem is in at a glance, and then each file is smaller and simpler so I can usually see the problem pretty quickly.

-ben


In reply to Re: CGI.pm HTML shortcuts, Better Way? by knobunc
in thread CGI.pm HTML shortcuts, Better Way? by shotgunefx

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.