On Thu, 8 Nov 2007, Ash Berlin wrote:

Similarly, I setup subs that I always want aviabale in the TT stash, such as format_datetime (which formats a DateTime object according do the currently logged in user's prefernce.) I also assing VMethods to $Template::Whatever::SCALAR_OPS here, since this seems like the place that such code belonds.

For Mason, this just involves importing subs that I want into the relevant package, but it's a similar thing. Yes, this obviously belongs in the view as well. Of course, if you had enough of this for TT you might want to put it in separate modules.


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to