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.

In reply to Re: To Dance or not to Dance with Dancer2? That is the question. by 1nickt
in thread To Dance or not to Dance with Dancer2? That is the question. by nysus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.