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
|
context['localsiteurl'] = self.settings['SITEURL'] # share
|
||||||
generators = [
|
generators = [
|
||||||
cls(
|
cls(
|
||||||
context,
|
context=context,
|
||||||
self.settings,
|
settings=self.settings,
|
||||||
self.path,
|
path=self.path,
|
||||||
self.theme,
|
theme=self.theme,
|
||||||
self.output_path,
|
output_path=self.output_path,
|
||||||
self.markup,
|
markup=self.markup,
|
||||||
) for cls in self.get_generator_classes()
|
) for cls in self.get_generator_classes()
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue