Feature: Local and scoped variables
Scenario: local variables
Given a file named "example.dryml" with:
"""
<% erb_local = 'Hello World' %>
<%= erb_local %>
<%= dryml_local %>
""" When I render "example.dryml" Then the output DOM should be: """Hello World
Hello World
""" Scenario: scoped variables Given a file named "example_taglib.dryml" with: """<%= scope.the_var %>
foo
bar
foo
""" Scenario: collecting content in a scoped var Given a file named "example_taglib.dryml" with: """Foo Foo Foo
Bar Bar Bar
Baz Baz Baz
Foo Foo Foo
Bar Bar Bar
Baz Baz Baz