On Tue, 18 Jan 2005, Dan Boger wrote: > I've been trying to be good, and seperate content from presentation. > But since starting using Mason, I find that's much harder to do?
That's because Mason makes the same mistake PHP does: it mixes your program logic in with your layout code. It shouldn't be any surprise that it's hard to be disciplined this way. Other Perl template frameworks like Template Toolkit & HTML::Template don't make this mistake, and they're much easier to maintain. > Am I missing something? Yes -- a template framework that lives up to the name. Mason is nice and all -- just as PHP is popular, I'm surprised that PHP isn't more popular than it seems to be -- but really it's going about the problem in the wrong way. A template framework that draws a clear distinction between the program logic, the interface, and the data (or to put it in design pattern terms, having separation between the Model, the View, and the Controller [MVC]) should be much better to work with. I didn't actually dislike Mason until 5 minutes ago, but now that I think about it, it's going about things all wrong. Use TT instead, or if you want something a little bit simpler, HTML::Template. -- Chris Devers _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

