in reply to They do different things! (was Re: 1001 CPAN Template modules)
in thread 1001 CPAN Template modules

Mason isn't designed to be a templating system. It's a Content Management System, similar to Asgard and many others. It's a mark of its strong design that it can be used solely as a templating system. And, like the others, it does CMS very well.

I don't understand this statement at all. Mason is very much not a CMS! A CMS is an application. For example, Bricolage is a CMS.

Mason is a templating system plus an application framework, mixed together, which is where it differs from HTML::Template or TT. For example, with Mason, you can plug it directly into mod_perl without writing any code but Mason components. You don't need to write code to marshall your data and pass it into Mason.

In other words, Mason is entirely self-contained. Of course, it doesn't have to be used that way. David Wheeler's MasonX::Interp::WithCallbacks module lets you do some processing before Mason steps in. I'm also working on something similar(-ish) that works with Mason. There's also Mason support for Maypole now, too. So you're certainly not obligated to use Mason and only Mason for an app.

  • Comment on Re: They do different things! (was Re: 1001 CPAN Template modules)

Replies are listed 'Best First'.
Re: Re: They do different things! (was Re: 1001 CPAN Template modules)
by dragonchild (Archbishop) on Apr 22, 2004 at 17:09 UTC
    I apologize - I have only read bits and pieces on Mason and I remember reading where it describes itself as a CMS. (No, I don't have the citation. Sorry.)

    However, your statements help illustrate the basic thrust of my point - Mason isn't a templating system, at its heart. It's an application framework. You write a Mason app, not a Perl webapp. That Mason is in Perl and you can use Perl is kinda secondary. It would be like writing an app in Oracle's AppServer. You'll be using some SQL and PL/SQL, but that's not the main thrust of the thing.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

      I apologize - I have only read bits and pieces on Mason and I remember reading where it describes itself as a CMS. (No, I don't have the citation. Sorry.)

      A long time ago the most interesting free Mason app was "the Mason CMS", which was used at CMP media, where Mason was originally written, IIRC.

      You write a Mason app, not a Perl webapp.

      Sort of. When I write a "Mason app", most of the logic is still in Perl modules. Mason is really just the frontend. It's just that app server bits it has built in make writing these frontends really simple.