Sha256: d5218b5b9ac7f5816d694d95343332a1e35f7ca4a59dcd76bc772dbcdfc3f71f

Contents?: true

Size: 1.47 KB

Versions: 12

Compression:

Stored size: 1.47 KB

Contents

Feature: Render different kind of templates

  As a presentator
  I want to use the template engine which fits best for a given use case
  In order to reduce the amount of time to create a new presentation

  Background:
    Given I use presentation fixture "simple1" with title "My Presentation"

  Scenario: Markdown Slide
    Given a slide named "01.html.md" with:
    """
    <section>
    # Hello world
    </section>
    """
    And the Server is running
    And I go to "/"
    Then I should see:
    """
    <section>
      <h1 id="hello-world">Hello world</h1>
    </section>
    """

  Scenario: Erb Slide
    Given a slide named "01.html.erb" with:
    """
    <section>
    <%= 'test_string' %>
    </section>
    """
    And the Server is running
    And I go to "/"
    Then I should see:
    """
    <section>
    test_string
    </section>
    """

  Scenario: Liquid Slide
    Given a slide named "01.html.liquid" with:
    """
    <section>
    {{ 'test_string' }}
    </section>
    """
    And the Server is running
    And I go to "/"
    Then I should see:
    """
    <section>
    test_string
    </section>
    """

  Scenario: Markdown + Erb Slide
    Given a slide named "01.html.md.erb" with:
    """
    <section>
    # Hello world

    <%= 'test_string' %>
    </section>
    """
    And the Server is running
    And I go to "/"
    Then I should see:
    """
    <section>
      <h1 id="hello-world">Hello world</h1>
    
      <p>test_string</p>
    </section>
    """

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
middleman-presentation-core-0.17.7 features/render_slides.feature
middleman-presentation-core-0.17.6 features/render_slides.feature
middleman-presentation-core-0.17.5 features/render_slides.feature
middleman-presentation-core-0.17.2 features/render_slides.feature
middleman-presentation-core-0.17.1 features/render_slides.feature
middleman-presentation-core-0.17.0 features/render_slides.feature
middleman-presentation-core-0.16.3 features/render_slides.feature
middleman-presentation-core-0.16.2 features/render_slides.feature
middleman-presentation-core-0.16.0 features/render_slides.feature
middleman-presentation-core-0.16.0.rc2 features/render_slides.feature
middleman-presentation-core-0.16.0.rc1 features/render_slides.feature
middleman-presentation-core-0.16.0.beta features/render_slides.feature