Mercurial > piecrust2
diff piecrust/data/base.py @ 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 | 32c7c2d219d2 |
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)