diff --git a/middleman-core/features/chained_templates.feature b/middleman-core/features/chained_templates.feature index 7f538b65..4647e7eb 100644 --- a/middleman-core/features/chained_templates.feature +++ b/middleman-core/features/chained_templates.feature @@ -13,10 +13,13 @@ Feature: Templates should be chainable When I cd to "build" Then the following files should exist: | index.html | - + | test.html.combobreaker | And the file "index.html" should contain "Title" And the file "index.html" should contain "Subtitle" And the file "index.html" should contain "Sup" + And the file "test.html.combobreaker.html" should contain "Title" + And the file "test.html.combobreaker.html" should contain "Subtitle" + And the file "test.html.combobreaker.html" should contain "Sup" Scenario: Partials are parsed by multiple template engines: Outer template has .erb and inner .md.erb Given a fixture app "partial-chained_templates-app" diff --git a/middleman-core/fixtures/chained-app/source/test.html.combobreaker.str.erb b/middleman-core/fixtures/chained-app/source/test.html.combobreaker.str.erb new file mode 100644 index 00000000..3b7caec2 --- /dev/null +++ b/middleman-core/fixtures/chained-app/source/test.html.combobreaker.str.erb @@ -0,0 +1,8 @@ +--- +layout: false +sup: "Sup" +--- + +

#{"<%= data.article.title %>"}

+

#{"<%= data.article.subtitle %>"}

+

#{"<%= current_page.data.sup %>"}