Merge pull request #178 from audionerd/master

Example of partial and layout using different engines
This commit is contained in:
Thomas Reynolds 2011-12-01 22:25:31 -08:00
commit 6a03a60cf7
6 changed files with 14 additions and 1 deletions

View file

@ -32,4 +32,10 @@ Feature: Provide Sane Defaults for Partial Behavior
Scenario: Partials can be passed locals
Given the Server is running at "partials-app"
When I go to "/locals.html"
Then I should see "Local var is bar"
Then I should see "Local var is bar"
Scenario: Partial and Layout use different engines
Given the Server is running at "different-engine-partial"
When I go to "/index.html"
Then I should see "ERb Main"
And I should see "Slim Footer"

View file

@ -0,0 +1 @@
Index

View file

@ -0,0 +1,4 @@
<%= partial 'shared/erb' %>
<%= partial 'shared/footer' %>
<% yield %>

View file

@ -0,0 +1 @@
ERb Main

View file

@ -0,0 +1 @@
footer Slim Footer