Mercurial > piecrust2
diff tests/bakes/test_theme_site.yaml @ 675:3df808b133f8
internal: Improve how theme configuration is validated and merged.
* Add default theme config up-front so it benefits from the usual validation.
* Add an explicit `use_default_theme_content` setting.
* Add/fix unit tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 06 Mar 2016 23:49:41 -0800 |
parents | |
children | 45ad976712ec |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/bakes/test_theme_site.yaml Sun Mar 06 23:49:41 2016 -0800 @@ -0,0 +1,18 @@ +--- +theme_config: + site: + title: "Some Test Theme" +in: + pages/foo.md: "This is: {{site.title}}" +outfiles: + foo.html: "This is: Some Test Theme" +--- +theme_config: + site: + title: "Some Test Theme" +in: + pages/foo.md: "This is: {{foo}}" + configs/theme_preview.yml: "foo: bar" +outfiles: + foo.html: "This is: bar" +