in reply to Refactoring webcode to use templates

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.

  • Comment on Re: Refactoring webcode to use templates

Replies are listed 'Best First'.
Re^2: Refactoring webcode to use templates
by Bod (Parson) on Feb 01, 2021 at 23:12 UTC
    I very much agree with kcott above. Perl has several good web frameworks...

    I will be using Template because that is what is installed on the webserver and because that is what I am getting familiar with building another website. I started using templating very recently thanks to the good information and influence that flows from the Monastery. The website which I plan to refactor didn't exist 12 months ago as got put together in response to the Pesky Pandemic.

    Technology doesn't directly have much to do with how effective your site is

    Don't worry! I am well aware of that...
    We have set about improving CRO which will involve incremental site changes. I want to refactor to make the changes easier rather than to increase the CRO directly.