Mercurial > piecrust2
changeset 433:5be275137056
templating: Add modification time of the page to the template data.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 27 Jun 2015 21:47:22 -0700 |
parents | 3aa174a7f3cf |
children | 6238dcfc7a78 |
files | piecrust/data/base.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/data/base.py Sat Jun 27 21:46:56 2015 -0700 +++ b/piecrust/data/base.py Sat Jun 27 21:47:22 2015 -0700 @@ -173,6 +173,7 @@ date_format = self.page.app.config.get('site/date_format') if date_format: self._setValue('date', self.page.datetime.strftime(date_format)) + self._setValue('mtime', self.page.path_mtime) assetor = Assetor(self.page, page_url) self._setValue('assets', assetor)