[Templates] Last-modified date
Rafael Kitover
caelum@debian.org
Wed, 2 Aug 2000 10:38:01 -0700
--FkmkrVfFsRoUs1wW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Aug 02, 2000 at 12:24:13PM -0500, Keith G. Murphy wrote:
> This has probably been asked before, but I just subscribed to the list,
> and the TT documentation seems to be temporarily unavailable on the web
> (haven't downloaded the product itself yet).
>=20
> Is there an (easy) way in TT to generate and include a last-modified
> date on all included templates?
>=20
> I.e., get the latest of the last-modified dates on the main template and
> all included templates on down. So that you can show:
>=20
> "This page last modified xx/xx/xxxx xx:xx:xx"
>=20
> in a way that really reflects the last thing that was actually changed.
Maybe something like:
[% PERL %]
use HTTP::Date;
$stash->{mod_time} =3D time2str(time);
[% END %]
in the top level template, then just
Last modified: [% mod_time %]
where needed, (included templates too), if I understood your question
correctly :)
--=20
Do what thou wilt shall be the whole of the Law.
Love is the law, love under will.
--FkmkrVfFsRoUs1wW
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iQCVAwUBOYhceOz9kGY+SikhAQEiPwP9FWqyqG0GWF2sZmxKZjnhDq9J2NP29h6t
sEYU6OYSh00NlsjGKLh+EaxVtUamc2WDKgZW/EXpJhbf+n0NtMZBKfau8SasyN/k
Kaqg5Fm/UpBKqOKydclwAUVH6dGGPFl5hYfWsJpTI2qfQrShnZWfJ3XPDLX+WJ7c
PME4k74dE60=
=jrnQ
-----END PGP SIGNATURE-----
--FkmkrVfFsRoUs1wW--