view tests/servings/test_theme.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: /
config:
    site:
        title: "Some Test"
in:
    theme/theme_config.yml: "name: testtheme"
    theme/pages/_index.md: "This is {{site.title}} by {{name}}"
    theme/templates/default.html: "THEME: {{content}}"
out: "THEME: This is Some Test by testtheme"
---
url: /foo.html
config:
    site:
        title: "Some Test"
    foo: bar
in:
    pages/foo.md: "This is: {{foo}} by {{name}}"
    theme/theme_config.yml: "name: testtheme"
out: "This is: bar by testtheme"