Mercurial > piecrust2
view tests/servings/test_theme_site.yaml @ 912:cd236a6af9f6
data: Add access to route metadata in the templating data.
It's available under `route`.
Also, rename `slug` to `rel_url`, because it's confusing when `slug` could
be the route metadata of the same name as provided by the default page source.
The old `slug` is still there for backwards compatibility though.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 28 Apr 2017 10:05:14 -0700 |
parents | 3df808b133f8 |
children | 45ad976712ec |
line wrap: on
line source
--- url: /foo.html theme_config: site: title: "Some Test Theme" in: pages/foo.md: "This is: {{site.title}}" out: "This is: Some Test Theme" --- url: /foo.html theme_config: site: title: "Some Test Theme" in: pages/foo.md: "This is: {{foo}}" configs/theme_preview.yml: "foo: bar" out: "This is: bar"