<?xml version="1.0" encoding="windows-1252"?>
<node id="1006665" title="Re: Perl and HTML" created="2012-12-01 21:28:54" updated="2012-12-01 21:28:54">
<type id="11">
note</type>
<author id="281137">
davido</author>
<data>
<field name="doctext">
&lt;p&gt;It sounds like you're looking for a templating system.  [mod://HTML::Template] will allow you to set up templates that are completed via Perl.  You can even use HTML::Template to "include" templates from other files.  That allows you to set up a framework template, a header template, a footer template, and so on, just pulling them all together as appropriate.&lt;/p&gt;
&lt;p&gt;Eventually you may want to look at a more full featured framework such as [mod://Mojolicious] (probably starting with a [mod://Mojolicious::Lite] application).  That provides templating, and a whole lot more.  It helps to promote a separation of concerns (Model / View / Controller), which has become a fairly standard way of doing things, and certainly a "best practice."&lt;/p&gt;

&lt;div class="pmsig"&gt;&lt;div class="pmsig-281137"&gt;
&lt;br /&gt;&lt;p&gt;Dave&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1006658</field>
<field name="parent_node">
1006658</field>
</data>
</node>
