[Templates] Finding mtime of top-level template

Andy Wardley abw@wardley.org
Wed, 1 Feb 2006 10:54:55 +0000


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