To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorInstance Vars
In order to share data with layouts and partials via instance variables
- Scenarios
-
- Setting an instance var in a template should be visible in its layout
- Setting an instance var in a template should be visible in a partial
- Setting an instance var in one file should not be visible in another
- Setting an instance var in a template should be visible in its layout
-
- Given
- the Server is running at "instance-vars-app"
- When
- I go to "/instance-var-set.html"
- Then
- I should see "Var is 100"
- Setting an instance var in a template should be visible in a partial
-
- Given
- the Server is running at "instance-vars-app"
- When
- I go to "/instance-var-set.html"
- Then
- I should see "My var is here!"
- Setting an instance var in one file should not be visible in another
-
- Given
- the Server is running at "instance-vars-app"
- When
- I go to "/instance-var-set.html"
- When
- I go to "/no-instance-var.html"
- Then
- I should see "No var..."
Last published over 7 years ago by middleman.