On Thu, Nov 3, 2011 at 11:38 AM, will trillich
<will.trill...@serensoft.com>wrote:

> On Thu, Nov 3, 2011 at 12:36 PM, Tomas Doran <bobtf...@bobtfish.net>wrote:
>
>> Another option is to *add a 'format_date' method to your view*, and use
>> the *expose_methods *config setting for View::TT..
>>
>> In your TT code you'd then say [% WHILE (row = mydata_rs.next);
>> format_date(row.my_date_field)**; END %]
>>
>
> </lurk>Interesting...
>
> Aha, that's what *
> http://search.cpan.org/~mstrout/Catalyst-View-TT-0.37/lib/Catalyst/View/TT.pm#expose_methods
> * is talking about. Hadn't noticed that before.
>
> Neat!
>

Agreed thanks for pointing that out, I might try that out once I get a
chance to play around with my app again
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to