view tests/servings/test_theme.yaml @ 1108:b2a34a6ec5e5

data: Let the `asset` endpoint load JSON data into the template engine.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 18 Feb 2018 20:32:30 -0800
parents 45ad976712ec
children
line wrap: on
line source

---
url: /
config:
    site:
        title: "Some Test"
in:
    theme/theme_config.yml: "name: testtheme"
    theme/pages/_index.html: "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.html: "This is: {{foo}} by {{name}}"
    theme/theme_config.yml: "name: testtheme"
out: "This is: bar by testtheme"