Feature: Nested parameters Background: Given a file named "example_taglib.dryml" with: """

<%= this.name %>

Index Page

""" When I include the taglib "example_taglib" Scenario: Single level of nesting Given a file named "example.dryml" with: """ Discussions <%= this.posts.length %> posts """ When the current context is a list of discussions And I render "example.dryml" Then the output DOM should be: """

Discussions

""" Scenario: Single level of nesting with extra attributes Given a file named "example.dryml" with: """ Discussions <%= this.posts.length %> posts """ When the current context is a list of discussions And I render "example.dryml" Then the output DOM should be: """

Discussions

""" Scenario: Multiple levels of nesting Given a file named "example.dryml" with: """ Welcome to our forum Discussions <%= this.posts.length %> posts """ When the current context is a list of discussions And I render "example.dryml" Then the output DOM should be: """ Index Page

Welcome to our forum

Discussions

"""