I very much agree with kcott above. Perl has several good web frameworks; perhaps the two most prominent right now are Mojolicious and Dancer2. (I'm partial to Dancer2 with Template Toolkit, myself.) Either will have the tools to help you separate your code from your design.

My advice: Don't rush. Spend a little time, even a few weeks, reading about them and looking at examples. Then start a clean, new project and start reconstructing your site the new way. You can create an unmaintainable mess even with good tools: fragile dependencies between objects, spaghetti callbacks to and from your templates. The time spent researching tools and getting familiar with them will pay. Same thing with testing.

Technology doesn't directly have much to do with how effective your site is. Dancer or Mojolicious won't directly lead to one more conversion (nor will most technology, despite what salespeople always say). People do that: you, as you gain more experience in your testing, or specialists that you might hire. Better technology makes it easier for you to do your jobs.


In reply to Re: Refactoring webcode to use templates by Radiola
in thread Refactoring webcode to use templates by Bod

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.