<?xml version="1.0" encoding="windows-1252"?>
<node id="1018067" title="Re: A modern Perl repalcement for Apache Server Side Includes?" created="2013-02-10 14:30:17" updated="2013-02-10 14:30:17">
<type id="11">
note</type>
<author id="647953">
sundialsvc4</author>
<data>
<field name="doctext">
&lt;p&gt;
Elaborating slightly on what has already been said ... I would use Template::Toolkit in a &lt;em&gt;stand-alone&lt;/em&gt; script to efficiently &lt;em&gt;generate&lt;/em&gt; the various content elements ... producing as an output a set of HTML-files &lt;i&gt;etc.&lt;/i&gt; that can then be served statically.
&lt;/p&gt;&lt;p&gt;
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. &amp;nbsp; The Perl script could efficiently generate side-bars pointing to other linked content as needed. &amp;nbsp; But when all it said and done, you&amp;rsquo;re going to the command-line and typing, say, &lt;tt&gt;./generate_my_site&lt;/tt&gt; 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. &amp;nbsp; Furthermore, if you plan carefully, none of the existing bookmarks that folks are using now, wherever they might be, need be disturbed: &amp;nbsp; you can generate the same output-file names as before.
&lt;/p&gt;&lt;p&gt;
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. &amp;nbsp; It is also relatively &lt;em&gt;cheap,&lt;/em&gt; and a lot can be accomplished in just a few days. &amp;nbsp; (I did this sort of project six or seven times just last year.)
&lt;/p&gt;&lt;p&gt;
&lt;em&gt;When&lt;/em&gt; 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 &lt;em&gt;those&lt;/em&gt; specific areas. &amp;nbsp; 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. &amp;nbsp; The user might not have any way to tell what content is static and what is dynamic.
&lt;/p&gt;

</field>
<field name="root_node">
1018062</field>
<field name="parent_node">
1018062</field>
</data>
</node>
