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!

-- 
"The very nucleus of Character: to do what you know you should do, when you
don't want to do it." Stephen Covey
_______________________________________________
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