diff --git a/middleman-core/fixtures/nested-layout-app/source/another.html.markdown b/middleman-core/fixtures/nested-layout-app/source/another.html.markdown deleted file mode 100644 index 562ceae5..00000000 --- a/middleman-core/fixtures/nested-layout-app/source/another.html.markdown +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "New Article Title" -date: 2011-01-01 -layout: inner ---- - -The Article Content diff --git a/middleman-core/fixtures/nested-layout-app/source/haml-test.html.markdown b/middleman-core/fixtures/nested-layout-app/source/haml-test.html.markdown deleted file mode 100644 index 38a7bee8..00000000 --- a/middleman-core/fixtures/nested-layout-app/source/haml-test.html.markdown +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "New Article Title" -date: 2011-01-01 -layout: inner_haml ---- - -The Article Content diff --git a/middleman-core/fixtures/nested-layout-app/source/layouts/inner_haml.haml b/middleman-core/fixtures/nested-layout-app/source/layouts/inner_haml.haml deleted file mode 100644 index e3976d7c..00000000 --- a/middleman-core/fixtures/nested-layout-app/source/layouts/inner_haml.haml +++ /dev/null @@ -1,3 +0,0 @@ -- wrap_layout :outer_haml do - Inner - = yield \ No newline at end of file diff --git a/middleman-core/fixtures/nested-layout-app/source/layouts/master_haml.haml b/middleman-core/fixtures/nested-layout-app/source/layouts/master_haml.haml deleted file mode 100644 index bdc6ccc5..00000000 --- a/middleman-core/fixtures/nested-layout-app/source/layouts/master_haml.haml +++ /dev/null @@ -1,3 +0,0 @@ -Master -= data.page.title -= yield \ No newline at end of file diff --git a/middleman-core/fixtures/nested-layout-app/source/layouts/outer_haml.haml b/middleman-core/fixtures/nested-layout-app/source/layouts/outer_haml.haml deleted file mode 100644 index 641e42c5..00000000 --- a/middleman-core/fixtures/nested-layout-app/source/layouts/outer_haml.haml +++ /dev/null @@ -1,3 +0,0 @@ -- wrap_layout :master_haml do - Outer - = yield diff --git a/middleman-more/features/nested_layouts.feature b/middleman-more/features/nested_layouts.feature index 496b9dc1..9d938397 100644 --- a/middleman-more/features/nested_layouts.feature +++ b/middleman-more/features/nested_layouts.feature @@ -3,34 +3,45 @@ Feature: Allow nesting of layouts Scenario: A page uses an inner layout when uses an outer layout Given the Server is running at "nested-layout-app" When I go to "/index.html" - Then I should see "Template" - And I should see "Inner" - And I should see "Outer" - And I should see "Master" + Then I should see: + """ + Master + Outer + Inner + Template + + """ When I go to "/another.html" - And I should see "New Article Title" - And I should see "The Article Content" - And I should see "Inner" - And I should see "Outer" - And I should see "Master" + Then I should see: + """ + Master + New Article Title + Outer + Inner +

The Article Content

+ """ Scenario: A page uses an inner layout when uses an outer layout (slim) Given the Server is running at "nested-layout-app" When I go to "/slim-test.html" - And I should see "New Article Title" - And I should see "The Article Content" - And I should see "Inner" - And I should see "Outer" - And I should see "Master" + Then I should see: + """ +

Master

New Article Title

Outer

Inner

The Article Content

+
+ """ Scenario: A page uses an inner layout when uses an outer layout (haml) Given the Server is running at "nested-layout-app" When I go to "/haml-test.html" - And I should see "New Article Title" - And I should see "The Article Content" - And I should see "Inner" - And I should see "Outer" - And I should see "Master" + Then I should see: + """ + Master + New Article Title + Outer + Inner + +

The Article Content

+ """ Scenario: YAML Front Matter isn't clobbered with nested layouts Given the Server is running at "nested-layout-app" diff --git a/middleman-more/fixtures/nested-layout-app/source/layouts/inner_slim.slim b/middleman-more/fixtures/nested-layout-app/source/layouts/inner_slim.slim index 30f769b4..d639b7e8 100644 --- a/middleman-more/fixtures/nested-layout-app/source/layouts/inner_slim.slim +++ b/middleman-more/fixtures/nested-layout-app/source/layouts/inner_slim.slim @@ -1,3 +1,3 @@ - wrap_layout :outer_slim do - Inner - = yield \ No newline at end of file + h3 Inner + == yield \ No newline at end of file diff --git a/middleman-more/fixtures/nested-layout-app/source/layouts/master_slim.slim b/middleman-more/fixtures/nested-layout-app/source/layouts/master_slim.slim index bdc6ccc5..ba9463d8 100644 --- a/middleman-more/fixtures/nested-layout-app/source/layouts/master_slim.slim +++ b/middleman-more/fixtures/nested-layout-app/source/layouts/master_slim.slim @@ -1,3 +1,3 @@ -Master -= data.page.title -= yield \ No newline at end of file +h1 Master +p== data.page.title +div== yield \ No newline at end of file diff --git a/middleman-more/fixtures/nested-layout-app/source/layouts/outer_slim.slim b/middleman-more/fixtures/nested-layout-app/source/layouts/outer_slim.slim index f0025db4..738e5bb7 100644 --- a/middleman-more/fixtures/nested-layout-app/source/layouts/outer_slim.slim +++ b/middleman-more/fixtures/nested-layout-app/source/layouts/outer_slim.slim @@ -1,3 +1,3 @@ - wrap_layout :master_slim do - Outer - = yield + h2 Outer + == yield