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

Hi,

Base templating engines are rarely form generators like FormFu

Maybe you can you peek at Dancer::Plugin::SimpleCRUD to see the potential

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

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

    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

      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