Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Answer: MASON - more than templates ?

( #180634=categorized answer: print w/ replies, xml ) Need Help??

Q&A > object-oriented programming > MASON - more than templates ? contributed by cephas

Mason has the flexibitly to be much more than a templating system, it can function more as a development medium, somewhat similar to PHP (I think, I know very little about PHP in reality).

Mason works well for those sticky places where form and function can't quite be separated the way we would all like in an ideal world. You can suddenly stash those code/html chunks away in components (which have inheritence), as well as set up some default behaviours for all of your components.

As for supporting Perl functionality, I've built large scale database applications using Mason, that included things such as anonymous subroutines in config files, debug modules that walked the symbol table and replaced subroutines matching a pattern with stubs, and other perlish type things. I'd have to say I haven't encountered a situation yet that we couldn't get through.

All those things being said, if you just want to get your web folks access to some variables, you'd probably be better off sticking to one of the other great templating systems around, because Mason really is a lot more (think hitting flies with a sledge hammer)

cephas

Comment on Answer: MASON - more than templates ?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-12-20 12:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls