1
0
Fork 0
forked from github/pelican

Add PAGES to the context

This commit is contained in:
Alexis Metaireau 2010-12-14 15:48:35 +00:00
commit 5748a91ad7
2 changed files with 3 additions and 1 deletions

View file

@ -184,13 +184,13 @@ class PagesGenerator(Generator):
self.pages.append(page)
self._update_context(('pages', ))
self.context['PAGES'] = self.pages
def generate_output(self, writer):
templates = self.get_templates()
for page in self.pages:
writer.write_file('pages/%s' % page.url, templates['page'],
self.context, page=page)
self._update_context(('pages',))
class StaticGenerator(Generator):