| 1 |
Source: libtemplate-plugin-datetime-format-perl |
| 2 |
Section: perl |
| 3 |
Priority: optional |
| 4 |
Maintainer: Debian Perl Group <[email protected]> |
| 5 |
Uploaders: Julien Vaubourg <[email protected]> |
| 6 |
Build-Depends: debhelper-compat (= 12) |
| 7 |
Build-Depends-Indep: perl, |
| 8 |
libclass-load-perl, |
| 9 |
libdatetime-perl, |
| 10 |
libtemplate-perl, |
| 11 |
libtest-exception-perl, |
| 12 |
libtest-pod-coverage-perl, |
| 13 |
libtest-pod-perl, |
| 14 |
libtest-simple-perl | libtest-use-ok-perl | perl |
| 15 |
Standards-Version: 3.9.6 |
| 16 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtemplate-plugin-datetime-format-perl |
| 17 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtemplate-plugin-datetime-format-perl.git |
| 18 |
Homepage: https://metacpan.org/release/Template-Plugin-DateTime-Format |
| 19 |
Testsuite: autopkgtest-pkg-perl |
| 20 |
|
| 21 |
Package: libtemplate-plugin-datetime-format-perl |
| 22 |
Architecture: all |
| 23 |
Depends: ${misc:Depends}, ${perl:Depends}, |
| 24 |
libclass-load-perl, |
| 25 |
libdatetime-perl |
| 26 |
Description: module for formatting DateTime objects from TT with DateTime::Format |
| 27 |
Oftentimes, you have a DateTime object that you want to render in |
| 28 |
your template. However, the default rendering (2008-01-01T01:23:45) |
| 29 |
is pretty ugly. Formatting the DateTime with a DateTime::Format object |
| 30 |
is the usual solution, but there's usually not a nice place to put the |
| 31 |
formatting code. |
| 32 |
. |
| 33 |
Template::Plugin::Datetime::Format solves that problem. You can create |
| 34 |
a formatter object from within TT and then use that object to format |
| 35 |
DateTime objects. |