Mercurial > piecrust2
diff piecrust/baking/baker.py @ 205:e725af1d48fb
bake: Changes in how assets directories are configured.
Change `skip_patterns` and `force_patterns` to `ignore` and `force`.
Put less responsibility on the `bake` command to specify all those settings,
and more on the `Baker` and `ProcessorPipeline` themselves.
Add some tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 18 Jan 2015 12:12:57 -0800 |
parents | aaf08277b96d |
children | 1f4c3dae1fe8 |
line wrap: on
line diff
--- a/piecrust/baking/baker.py Sun Jan 18 11:53:18 2015 -0800 +++ b/piecrust/baking/baker.py Sun Jan 18 12:12:57 2015 -0800 @@ -18,14 +18,12 @@ class Baker(object): - def __init__(self, app, out_dir, force=False, - no_assets=False, num_workers=4): + def __init__(self, app, out_dir, force=False): assert app and out_dir self.app = app self.out_dir = out_dir self.force = force - self.no_assets = no_assets - self.num_workers = num_workers + self.num_workers = app.config.get('baker/workers', 4) # Remember what taxonomy pages we should skip # (we'll bake them repeatedly later with each taxonomy term)