Feature: Pseudo-parameters: before, after, append and prepend Background: Given a file named "example_taglib.dryml" with: """

<%= this.name %>

#{alt || image} Intro Help """ When I include the taglib "example_taglib" Scenario: append parameter Given a file named "example.dryml" with: """ -- The Hobo Blog <%= this.body %> """ When the current context is a blog post And I render "example.dryml" Then the output DOM should be: """

A Blog Post -- The Hobo Blog

Some body content
""" Scenario: prepend parameter Given a file named "example.dryml" with: """ The Hobo Blog -- <%= this.body %> """ When the current context is a blog post And I render "example.dryml" Then the output DOM should be: """

The Hobo Blog -- A Blog Post

Some body content
""" Scenario: before parameter Given a file named "example.dryml" with: """

The Hobo Blog

<%= this.body %>
""" When the current context is a blog post And I render "example.dryml" Then the output DOM should be: """

The Hobo Blog

A Blog Post

Some body content
""" Scenario: after parameter Given a file named "example.dryml" with: """

The Hobo Blog

<%= this.body %>
""" When the current context is a blog post And I render "example.dryml" Then the output DOM should be: """

A Blog Post

The Hobo Blog

Some body content
""" Scenario: append parameter uses the default parameter Given a file named "example.dryml" with: """ And More """ When the current context is a blog post And I render "example.dryml" Then the output DOM should be: """

A Blog Post

introIntro Help And More
""" Scenario: a replace parameter Given a file named "example.dryml" with: """

My Awesome Page

Some content
""" When I render "example.dryml" Then the output DOM should be: """

My Awesome Page

Some content
""" Scenario: a replace parameter with no content Given a file named "example.dryml" with: """ Some content """ When I render "example.dryml" Then the output DOM should be: """
Some content
""" Scenario: using without Given a file named "example.dryml" with: """ Some content """ When I render "example.dryml" Then the output DOM should be: """
Some content
"""