[Templates] Finding mtime of top-level template
Gavin Henry
ghenry@perl.me.uk
Wed, 1 Feb 2006 21:58:33 -0000 (GMT)
<quote who="Andy Wardley">
> Gavin Henry wrote:
>> So I think the best option is to use [% template.modtime %], but how can
>> I
>> convert from epoch from within a template?
>
> Hi Gavin,
>
> This should do what you want:
>
> [% USE date %]
> [% date.format(template.modtime) %]
>
> Cheers
> A
Hey, thanks ;-)
>
>
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://lists.template-toolkit.org/mailman/listinfo/templates
>