diff tests/bakes/test_simple.bake @ 347:76c838453dbe

tests: Support for YAML-based baking tests. Convert old code-based ones.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 15 Apr 2015 16:39:35 -0700
parents
children 4b1019bb2533
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/bakes/test_simple.bake	Wed Apr 15 16:39:35 2015 -0700
@@ -0,0 +1,28 @@
+---
+in:
+    posts/2010-01-01_post1.md: 'post one'
+    pages/about.md: 'URL: {{page.url}}'
+    pages/_index.md: 'something'
+out:
+    '2010':
+        '01':
+            '01':
+                post1.html: 'post one'
+    about.html: 'URL: /about.html'
+    index.html: 'something'
+---
+config:
+    site:
+        root: /whatever
+in:
+    posts/2010-01-01_post1.md: 'post one'
+    pages/about.md: 'URL: {{page.url}}'
+    pages/_index.md: 'something'
+out:
+    '2010':
+        '01':
+            '01':
+                post1.html: 'post one'
+    about.html: 'URL: /whatever/about.html'
+    index.html: 'something'
+