Mercurial > piecrust2
view tests/servings/test_unicode.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 | bab91fcef741 |
children | 45ad976712ec |
line wrap: on
line source
--- url: /pr%C3%A9sentation.html in: pages/présentation.md: 'PAGE URL: {{page.url}}' out: 'PAGE URL: /pr%C3%A9sentation.html' --- url: /2010/01/01/d%C3%A9j%C3%A0-des-accents.html in: posts/2010-01-01_déjà-des-accents.md: 'POST URL: {{page.url}}' out: 'POST URL: /2010/01/01/d%C3%A9j%C3%A0-des-accents.html' --- url: /special/%D0%AD%D1%82%D0%BE%20%D1%82%D1%8D%D0%B3.html in: pages/special/Это тэг.md: 'PAGE URL: {{page.url}}' out: 'PAGE URL: /special/%D0%AD%D1%82%D0%BE%20%D1%82%D1%8D%D0%B3.html'