Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Elaborating slightly on what has already been said ... I would use Template::Toolkit in a stand-alone script to efficiently generate the various content elements ... producing as an output a set of HTML-files etc. that can then be served statically.

There are many ways (SQLite, XML, or even a CSV file output from a spreadsheet) to specify the content and the desired taxonomy of that content.   The Perl script could efficiently generate side-bars pointing to other linked content as needed.   But when all it said and done, you’re going to the command-line and typing, say, ./generate_my_site and in a matter of a few seconds the entire set of files has been generated, from whence Apache can now do what Apache does best.   Furthermore, if you plan carefully, none of the existing bookmarks that folks are using now, wherever they might be, need be disturbed:   you can generate the same output-file names as before.

This will achieve a very efficient make-over of the site, to the extent that the Perl script avoids redundant human effort while boosting consistency.   It is also relatively cheap, and a lot can be accomplished in just a few days.   (I did this sort of project six or seven times just last year.)

When there is a bona-fide need for some non-static content, then you can begin to wedge-in some Perl code (or what-have-you) in order to serve those specific areas.   By once again using the same templates (and/or some other templates that, perhaps, have also been statically-generated by the aforementioned script), the look-and-feel of the completed site is seamless and whole.   The user might not have any way to tell what content is static and what is dynamic.


In reply to Re: A modern Perl repalcement for Apache Server Side Includes? by sundialsvc4
in thread A modern Perl repalcement for Apache Server Side Includes? by punch_card_don

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (11)
    As of 2014-07-28 10:02 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite superfluous repetitious redundant duplicative phrase is:









      Results (195 votes), past polls