Mercurial > piecrust2
comparison piecrust/data/builder.py @ 46:99dea56238af
Apparently Jinja doesn't understand `None` the way I thought.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 21 Aug 2014 23:26:44 -0700 |
parents | 62c7a97c8340 |
children | cb1ed436642c |
comparison
equal
deleted
inserted
replaced
45:efd0d3bacc9e | 46:99dea56238af |
---|---|
96 | 96 |
97 @property | 97 @property |
98 def debug_info(self): | 98 def debug_info(self): |
99 if self._page is not None and self._data is not None: | 99 if self._page is not None and self._data is not None: |
100 return build_debug_info(self._page, self._data) | 100 return build_debug_info(self._page, self._data) |
101 return None | 101 return '' |
102 | 102 |
103 def _enableDebugInfo(self, page, data): | 103 def _enableDebugInfo(self, page, data): |
104 self._page = page | 104 self._page = page |
105 self._data = data | 105 self._data = data |
106 | 106 |