Sha256: 9369b3ca2662bb91fb3408d864b9beb489140644c12bc6c579c6b28436a19269

Contents?: true

Size: 1.15 KB

Versions: 33

Compression:

Stored size: 1.15 KB

Contents

Feature: Simple page templates and ERB

  Scenario: Interpolating in HTML attributes
    Given a file named "example.dryml" with:
      """
      <% my_url = '/foo/bar' %>
      <a href="#{my_url}">Link Text</a>
      """
    When I render "example.dryml"
    Then the output DOM should be:
      """
      <a href="/foo/bar">Link Text</a>
      """

  Scenario: Merging a hash of attributes
    Given a file named "example.dryml" with:
      """
      <% hash = { :action => '/foo/bar', :method => 'get' } %>
      <form merge-attrs="&hash">
        <input type="text" name="wut" />
      </form>
      """
    When I render "example.dryml"
    Then the output DOM should be:
      """
      <form action="/foo/bar" method="get">
        <input type="text" name="wut" />
      </form>
      """

  Scenario: Dynamically calling tags
    Given a file named "example.dryml" with:
      """
      <% my_tag_name = "div" %>
      <%= raw "<#{my_tag_name}>" %>FOO<%= raw "</#{my_tag_name}>" %>
      <call-tag tag="&my_tag_name">BAR</call-tag>
      """
    When I render "example.dryml"
    Then the output DOM should be:
      """
      <div>FOO</div>
      <div>BAR</div>
      """

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
dryml-2.2.6 features/cookbook/01_simple_page_templates.feature
dryml-2.2.5 features/cookbook/01_simple_page_templates.feature
dryml-2.2.4 features/cookbook/01_simple_page_templates.feature
dryml-2.2.3 features/cookbook/01_simple_page_templates.feature
dryml-2.2.2 features/cookbook/01_simple_page_templates.feature
dryml-2.2.1 features/cookbook/01_simple_page_templates.feature
dryml-2.2.0 features/cookbook/01_simple_page_templates.feature
dryml-2.1.2 features/cookbook/01_simple_page_templates.feature
dryml-2.1.1 features/cookbook/01_simple_page_templates.feature
dryml-2.1.0 features/cookbook/01_simple_page_templates.feature
dryml-2.1.0.pre4 features/cookbook/01_simple_page_templates.feature
dryml-2.1.0.pre3 features/cookbook/01_simple_page_templates.feature
dryml-2.1.0.pre2 features/cookbook/01_simple_page_templates.feature
dryml-2.1.0.pre1 features/cookbook/01_simple_page_templates.feature
dryml-2.0.1 features/cookbook/01_simple_page_templates.feature
dryml-2.0.0 features/cookbook/01_simple_page_templates.feature
dryml-2.0.0.pre10 features/cookbook/01_simple_page_templates.feature
dryml-2.0.0.pre9 features/cookbook/01_simple_page_templates.feature
dryml-2.0.0.pre8 features/cookbook/01_simple_page_templates.feature
dryml-2.0.0.pre7 features/cookbook/01_simple_page_templates.feature