in reply to Re: To Dance or not to Dance with Dancer2? That is the question.
in thread To Dance or not to Dance with Dancer2? That is the question.

Yeah, that fairly closely resembles the kind of thing I'd like to do. I want to write as little HTML and javascript as possible. Then the questions becomes, can it be super fast? I was using mod_perl because that was what I was familiar with and it could crank out code very quickly.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

  • Comment on Re^2: To Dance or not to Dance with Dancer2? That is the question.

Replies are listed 'Best First'.
Re^3: To Dance or not to Dance with Dancer2? That is the question.
by Corion (Patriarch) on Dec 05, 2017 at 09:00 UTC

    I found that trying to push as much stuff as possible into Perl is possible but usually not worth the effort, at least for SQL, Javascript and HTML.

    Personally, I write those parts natively and include them, at least until I have completely understood the problem space. When using "integrated" solutions, I usually find myself running up to the limits of the integration and then fighting the framework that adapts Perl to whatever output I want, instead of actually solving the problem.

    But if you're doing it for the fun of it, and for exploratory purposes, have a look at Jifty, which did lots of interesting high-traffic integration of Perl and Javascript, by generating Perl code to generate Javascript components from component templates.

      Yeah, very interesting. Like Jifty, I have templates for each kind of component (textfields, pages, forms, etc.). Each of my components can "talk" to each other under through an `AppPage` object I wrote that binds them all together. I am definitely reinventing the wheel here except my html generator is specific to jquery mobile.

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
      $nysus = $PM . ' ' . $MCF;
      Click here if you love Perl Monks