Mercurial > piecrust2
comparison tests/bakes/test_variant.yaml @ 666:81d9c3a3a0b5
internal: Get rid of the whole "sub cache" business.
* Compute cache keys up front, so the cache directory is only chosen once.
* Buffer up config variants to apply before loading the config. Makes it
possible to cache variant-resulting configs, too.
* Make a factory class to reuse the logic that creates the `PieCrust` object
correctly for multi-process workers and such.
* Add a test.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 03 Mar 2016 08:22:41 -0800 |
parents | 456db44dcc53 |
children | 894d286b348f |
comparison
equal
deleted
inserted
replaced
665:5dc13c816045 | 666:81d9c3a3a0b5 |
---|---|
10 out: | 10 out: |
11 index.html: 'This is awesome.' | 11 index.html: 'This is awesome.' |
12 --- | 12 --- |
13 config: | 13 config: |
14 what: not good | 14 what: not good |
15 config_variant: test | |
16 in: | |
17 pages/_index.md: 'This is {{what}}.' | |
18 configs/test.yml: 'what: awesome' | |
19 out: | |
20 index.html: 'This is awesome.' | |
21 --- | |
22 config: | |
23 what: not good | |
15 config_values: | 24 config_values: |
16 what: awesome | 25 what: awesome |
17 in: | 26 in: |
18 pages/_index.md: 'This is {{what}}.' | 27 pages/_index.md: 'This is {{what}}.' |
19 out: | 28 out: |