mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Pelican.run: Use keyword arguments when initializing generators
This makes it easier to add new arguments to Generator subclasses.
This commit is contained in:
parent
8f295f7a03
commit
0d1866b393
1 changed files with 6 additions and 6 deletions
|
|
@ -157,12 +157,12 @@ class Pelican(object):
|
|||
context['localsiteurl'] = self.settings['SITEURL'] # share
|
||||
generators = [
|
||||
cls(
|
||||
context,
|
||||
self.settings,
|
||||
self.path,
|
||||
self.theme,
|
||||
self.output_path,
|
||||
self.markup,
|
||||
context=context,
|
||||
settings=self.settings,
|
||||
path=self.path,
|
||||
theme=self.theme,
|
||||
output_path=self.output_path,
|
||||
markup=self.markup,
|
||||
) for cls in self.get_generator_classes()
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue