Feature: Tag attributes
Scenario: A tag with one attribute
Given a file named "example_taglib.dryml" with:
"""
"""
And a file named "example.dryml" with:
"""
Introductory Help
"""
When I include the taglib "example_taglib"
And I render "example.dryml"
Then the output DOM should be:
"""
Introductory Help
"""
Scenario: A tag with a boolean attribute
Given a file named "example_taglib.dryml" with:
"""
"""
And a file named "example.dryml" with:
"""
Introductory Help In A New Window
Introductory Help
"""
When I include the taglib "example_taglib"
And I render "example.dryml"
Then the output DOM should be:
"""
Introductory Help In A New Window
Introductory Help
"""
Scenario: A tag with a flag attribute
Given a file named "example_taglib.dryml" with:
"""
"""
And a file named "example.dryml" with:
"""
Introductory Help In A New Window
Introductory Help
"""
When I include the taglib "example_taglib"
And I render "example.dryml"
Then the output DOM should be:
"""
Introductory Help In A New Window
Introductory Help
"""
Scenario: Using merge-attrs
Given a file named "example_taglib.dryml" with:
"""
"""
And a file named "example.dryml" with:
"""
Add formatting using markdown
"""
When I include the taglib "example_taglib"
And I render "example.dryml"
Then the output DOM should be:
"""
Add formatting using markdown
"""
Scenario: Using merge-attrs and attributes_for
Given a file named "example_taglib.dryml" with:
"""
"""
And a file named "example.dryml" with:
"""
Introductory Help In A New Window
"""
When I include the taglib "example_taglib"
And I render "example.dryml"
Then the output DOM should be:
"""
Introductory Help In A New Window
"""
Scenario: Merging the class attribute
Given a file named "example_taglib.dryml" with:
"""
"""
And a file named "example.dryml" with:
"""
Introductory Help
"""
When I include the taglib "example_taglib"
And I render "example.dryml"
Then the output DOM should be:
"""
Introductory Help
"""