[Catalyst] Beginner question: View directory
Dave Rolsky
autarch at urth.org
Thu Nov 8 15:09:56 GMT 2007
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
===================================================*/
More information about the Catalyst
mailing list