Написал собственный фильтр для TT. Это оказалось достаточно просто:
package MyApp::View::TT;
use strict;
use base 'Catalyst::View::TT';
use POSIX 'strftime';
__PACKAGE__->config({
...
FILTERS => {
'date' => \&filter_date
},
...
});
=head2 filter_date
(
Read more... )
Comments 2
[% date.format(date.now, '%d.%m.%Y') %]
Reply
Reply
Leave a comment