Add test for #1568
This commit is contained in:
parent
2b2ee10d81
commit
a251c82562
2 changed files with 12 additions and 1 deletions
|
@ -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</h1>"
|
||||
And the file "index.html" should contain "Subtitle</h2>"
|
||||
And the file "index.html" should contain "Sup</h3>"
|
||||
And the file "test.html.combobreaker.html" should contain "Title</h1>"
|
||||
And the file "test.html.combobreaker.html" should contain "Subtitle</h2>"
|
||||
And the file "test.html.combobreaker.html" should contain "Sup</h3>"
|
||||
|
||||
Scenario: Partials are parsed by multiple template engines: Outer template has .erb and inner .md.erb
|
||||
Given a fixture app "partial-chained_templates-app"
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
layout: false
|
||||
sup: "Sup"
|
||||
---
|
||||
|
||||
<h1>#{"<%= data.article.title %>"}</h1>
|
||||
<h2>#{"<%= data.article.subtitle %>"}</h2>
|
||||
<h3>#{"<%= current_page.data.sup %>"}</h3>
|
Loading…
Reference in a new issue