Mercurial > piecrust2
view tests/bakes/test_simple_categories.yaml @ 414:c4b3a7fd2f87
bake: Make pipeline processing multi-process.
Not many changes here, as it's pretty straightforward, but an API change for
processors so they know if they're being initialized/disposed from the main
process or from one of the workers. This makes it possible to do global stuff
that has side-effects (e.g. create a directory) vs. doing in-memory stuff.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 20 Jun 2015 19:20:30 -0700 |
parents | 879b6b5647a8 |
children | 7705b3d981ca |
line wrap: on
line source
--- config: site: category_url: cat/%category% in: posts/2015-03-01_post01.md: | --- title: Post 01 category: foo --- posts/2015-03-02_post02.md: | --- title: Post 02 category: bar --- posts/2015-03-03_post03.md: | --- title: Post 03 category: foo --- pages/_category.md: | Pages in {{category}} {% for p in pagination.posts -%} {{p.title}} {% endfor %} pages/_index.md: '' out: index.html: '' '2015': '03': '01': post01.html: '' '02': post02.html: '' '03': post03.html: '' cat: foo.html: | Pages in foo Post 03 Post 01 bar.html: | Pages in bar Post 02