# HG changeset patch # User Ludovic Chabant # Date 1435466842 25200 # Node ID 5be2751370565c9a1c73578f1a6986b4ae3c426c # Parent 3aa174a7f3cf20883e638b41d7459ed8dba2bc07 templating: Add modification time of the page to the template data. diff -r 3aa174a7f3cf -r 5be275137056 piecrust/data/base.py --- 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)