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

Hi, you rather seem to have formed your opinion already. But what you showed is a Template Toolkit template. It's nothing to do with writing application code in Perl for use with Dancer or any other PSGI application or any other solution.

With Dancer2, as with most web app frameworks, you *may* use a templating engine to generate the HTML your clients see. You *may* use Template if you go that route. You also might return JSON and have a client-side framework such as AngularJS generate all of the HTML. Or you might use any of a million other solutions. It's completely up to you what you output and how you send it.

As for what Dancer2 "buys you," it buys you the ability to begin making web apps instead of trying to make a framework to make webapps.


The way forward always starts with a minimal test.
  • 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:49 UTC

    No, I haven't made up my mind at all. I'm just playing kind of devil's advocate and trying to wrap my head around what Dancer2 can help me do. I've had a lot of fun developing my own method of generating HTML code with a bunch of Moose objects. I think what I'd like to do is marry my little HTML writing engine with Dancer2. I'm just not clear on how to get there at this point and I'm also unclear if I can make it super fast.

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