Mercurial > piecrust2
comparison piecrust/data/provider.py @ 729:e35407c60e00
templating: Make blog archives generator expose more templating data.
In addition to pagination data, also expose a non-paginating iterator that
lists all posts in a source by chronological order.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 01 Jun 2016 22:09:21 -0700 |
parents | e4dcef2d5640 |
children | 0fdf1e43bf92 |
comparison
equal
deleted
inserted
replaced
728:e7481bbbb29f | 729:e35407c60e00 |
---|---|
246 | 246 |
247 def _load(self): | 247 def _load(self): |
248 if self._iterator is not None: | 248 if self._iterator is not None: |
249 return | 249 return |
250 | 250 |
251 self._iterator = PageIterator(self._source, self._page) | 251 self._iterator = PageIterator(self._source, current_page=self._page) |
252 | 252 |