From a251c82562efccb4819295b364e6445b1ab799da Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Mon, 20 Jul 2015 12:13:10 -0700 Subject: [PATCH] Add test for #1568 --- middleman-core/features/chained_templates.feature | 5 ++++- .../chained-app/source/test.html.combobreaker.str.erb | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 middleman-core/fixtures/chained-app/source/test.html.combobreaker.str.erb 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 %>"}