Replace all occurrences of data.page with current_page.data
see https://github.com/middleman/middleman/issues/912
This commit is contained in:
parent
994bd651f8
commit
ed59260367
|
@ -17,7 +17,7 @@ Feature: Neighboring YAML Front Matter
|
||||||
Scenario: Rendering raw (template-less) (yaml)
|
Scenario: Rendering raw (template-less) (yaml)
|
||||||
Given the Server is running at "frontmatter-neighbor-app"
|
Given the Server is running at "frontmatter-neighbor-app"
|
||||||
When I go to "/raw-front-matter.html"
|
When I go to "/raw-front-matter.html"
|
||||||
Then I should see "<h1><%= data.page.title %></h1>"
|
Then I should see "<h1><%= current_page.data.title %></h1>"
|
||||||
Then I should not see "---"
|
Then I should not see "---"
|
||||||
When I go to "/raw-front-matter.html.frontmatter"
|
When I go to "/raw-front-matter.html.frontmatter"
|
||||||
Then I should see "File Not Found"
|
Then I should see "File Not Found"
|
||||||
|
@ -59,7 +59,7 @@ Feature: Neighboring YAML Front Matter
|
||||||
Given the Server is running at "frontmatter-neighbor-app"
|
Given the Server is running at "frontmatter-neighbor-app"
|
||||||
And the file "source/front-matter-change.html.erb" has the contents
|
And the file "source/front-matter-change.html.erb" has the contents
|
||||||
"""
|
"""
|
||||||
<%= data.page.title %>
|
<%= current_page.data.title %>
|
||||||
"""
|
"""
|
||||||
And the file "source/front-matter-change.html.erb.frontmatter" has the contents
|
And the file "source/front-matter-change.html.erb.frontmatter" has the contents
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -14,7 +14,7 @@ Feature: YAML Front Matter
|
||||||
Scenario: Rendering raw (template-less) (yaml)
|
Scenario: Rendering raw (template-less) (yaml)
|
||||||
Given the Server is running at "frontmatter-app"
|
Given the Server is running at "frontmatter-app"
|
||||||
When I go to "/raw-front-matter.html"
|
When I go to "/raw-front-matter.html"
|
||||||
Then I should see "<h1><%= data.page.title %></h1>"
|
Then I should see "<h1><%= current_page.data.title %></h1>"
|
||||||
Then I should not see "---"
|
Then I should not see "---"
|
||||||
When I go to "/raw-front-matter.php"
|
When I go to "/raw-front-matter.php"
|
||||||
Then I should see '<?php echo "sup"; ?>'
|
Then I should see '<?php echo "sup"; ?>'
|
||||||
|
@ -66,7 +66,7 @@ Feature: YAML Front Matter
|
||||||
title: Hello World
|
title: Hello World
|
||||||
layout: false
|
layout: false
|
||||||
---
|
---
|
||||||
<%= data.page.title %>
|
<%= current_page.data.title %>
|
||||||
"""
|
"""
|
||||||
When I go to "/front-matter-change.html"
|
When I go to "/front-matter-change.html"
|
||||||
Then I should see "Hello World"
|
Then I should see "Hello World"
|
||||||
|
@ -76,7 +76,7 @@ Feature: YAML Front Matter
|
||||||
title: Hola Mundo
|
title: Hola Mundo
|
||||||
layout: false
|
layout: false
|
||||||
---
|
---
|
||||||
<%= data.page.title %>
|
<%= current_page.data.title %>
|
||||||
"""
|
"""
|
||||||
When I go to "/front-matter-change.html"
|
When I go to "/front-matter-change.html"
|
||||||
Then I should see "Hola Mundo"
|
Then I should see "Hola Mundo"
|
||||||
|
|
|
@ -5,4 +5,4 @@ sup: "Sup"
|
||||||
|
|
||||||
<h1>#{"<%= data.article.title %>"}</h1>
|
<h1>#{"<%= data.article.title %>"}</h1>
|
||||||
<h2>#{"<%= data.article.subtitle %>"}</h2>
|
<h2>#{"<%= data.article.subtitle %>"}</h2>
|
||||||
<h3>#{"<%= data.page.sup %>"}</h3>
|
<h3>#{"<%= current_page.data.sup %>"}</h3>
|
||||||
|
|
|
@ -3,5 +3,5 @@ layout: false
|
||||||
title: This is the title
|
title: This is the title
|
||||||
---
|
---
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
<?php echo "sup"; ?>
|
<?php echo "sup"; ?>
|
||||||
|
|
|
@ -3,4 +3,4 @@ layout: false
|
||||||
title: This is the title
|
title: This is the title
|
||||||
---
|
---
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
title: Hola Mundo
|
title: Hola Mundo
|
||||||
layout: false
|
layout: false
|
||||||
---
|
---
|
||||||
<%= data.page.title %>
|
<%= current_page.data.title %>
|
||||||
|
|
|
@ -4,4 +4,4 @@ layout: false
|
||||||
title: This is the title
|
title: This is the title
|
||||||
---
|
---
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -4,4 +4,4 @@ layout: false
|
||||||
title: This is the title
|
title: This is the title
|
||||||
---
|
---
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
"title": "This is the title"
|
"title": "This is the title"
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
<?php echo "sup"; ?>
|
<?php echo "sup"; ?>
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
"title": "This is the title"
|
"title": "This is the title"
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
"title": "This is the title"
|
"title": "This is the title"
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -4,4 +4,4 @@ layout: false,
|
||||||
title: "This is the title"
|
title: "This is the title"
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
"title": "This is the title"
|
"title": "This is the title"
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -3,4 +3,4 @@ layout: false
|
||||||
title: This is the title
|
title: This is the title
|
||||||
---
|
---
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
<?php echo "sup"; ?>
|
<?php echo "sup"; ?>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<%= data.page.title %>
|
<%= current_page.data.title %>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
<?php echo "sup"; ?>
|
<?php echo "sup"; ?>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Master
|
Master
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= current_page.data.title %></h1>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Master
|
Master
|
||||||
%h1= data.page.title
|
%h1= current_page.data.title
|
||||||
= yield
|
= yield
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
h1 Master
|
h1 Master
|
||||||
p== data.page.title
|
p== current_page.data.title
|
||||||
div== yield
|
div== yield
|
||||||
|
|
Loading…
Reference in a new issue