Mercurial > piecrust2
view tests/bakes/test_simple_categories.bake @ 371:c2ca72fb7f0b 2.0.0a8
caching: Use separate caches for config variants and other contexts.
* The `_cache` directory is now organized in multiple "sub-caches" for
different contexts.
* A new context is created when config variants or overrides are applied.
* `serve` context uses a different context that the other commends, to prevent
the `bake` command's output from messing up the preview server (e.g. with
how asset URLs are generated differently between the two).
* Fix a few places where the cache directory was referenced directly.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 03 May 2015 23:59:46 -0700 |
parents | 76c838453dbe |
children |
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