Bug#641280: ITP: libtemplate-plugin-datetime-format-perl -- format DateTime objects from inside TT with DateTime::Format-style formatters
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG <julien@vaubourg.com>
* Package name : libtemplate-plugin-datetime-format-perl
Version : 0.02
Upstream Author : Jonathan Rockway <jrockway@cpan.org>
* URL : http://search.cpan.org/~jrockway/Template-Plugin-DateTime-Format-0.02/
* License : Artistic 1, GPL 1
Programming Lang: Perl
Description : Format DateTime objects from inside TT with DateTime::Format-style formatters
Oftentimes, you have a DateTime object that you want to render in your template.
However, the default rendering (2008-01-01T01:23:45) is pretty ugly. Formatting
the DateTime with a DateTime::Format object is the usual solution, but there's
usually not a nice place to put the formatting code.
..
This plugin solves that problem. You can create a formatter object from within
TT and then use that object to format DateTime objects.
Reply to: