Hi. I've just started reading about Mason and am getting interested in the technology. My early sense is Mason offers a powerful way to build modular web pages via components. Components can have perl in them, though I agree with the assertion that too much code isn't the best idea. I also see that Mason can interact nicely with apache::session to handle state.

Here's my question: how do folks using Mason handle application logic? I've built a hand-rolled version of CGI::Application that meets my needs and used TT2; do I do the same w/ Mason? Or does Mason have logic routing code aspects to it?

Also, can anyone offer examples / links / suggestions to using Mason in a model-view-controller design?

These are new areas to me; apologies if my question reflects that. Thanks --

nop

In reply to newbie question: Mason, CGI::App, MVC by nop

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.