Hello again, Monks!

My apologies in advance for being tangential. I've had too much coffee and not enough working code today!

So I finally stepped up to a framework and decided to do Catalyst for a project I'm currently working on. It's been pretty sweet thus far, really liking it. Although it seems to be lacking in popularity...Sidebar: is Dancer the thing? I know frameworks in PHP seem to be all-the-rage right now but I grew up on perl and don't really want to let it go, you know? I feel like the whole Ruby on Rails thing kind of blew over and I'd hate to just jump on a fad framework :p

But I digress.

My question is in setting up Handel. I followed along with the tutorial and built up a bare framework with nothing else in it but Handel. After hours of head scratching I figured out that the misbehavior was in how the helper script sets up the controllers. Specifically what should be "index" page (i.e. mywebsite/cart) is written as:

sub default : Local { ... }

When that URL is hit though you get the Root controllers default method saying page not found. If the first line is rewritten as:

sub index :Path :Args(0) { ... }

it seems to function just fine.

My question is: have I overlooked something? Did something change in Catalyst since the helpers were written that has caused this behavior? More curiosity now that I've goten it "working" than anything else.

And again, what's up with the scarce tutorials and such? Is Catalyst a dying framework???

Thanks, yall! --dom

In reply to Catalyst and Handel by domje

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.