in reply to Re^2: 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.

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.

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

Replies are listed 'Best First'.
Re^4: To Dance or not to Dance with Dancer2? That is the question.
by nysus (Parson) on Dec 05, 2017 at 11:35 UTC

    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