Sha256: aa1bf42790d0b8484631abc1ac189dcb180ec06381633e353e35d54faa0dba55

Contents?: true

Size: 1.63 KB

Versions: 38

Compression:

Stored size: 1.63 KB

Contents

Feature: Support slim templating language
  In order to offer an alternative to Haml

  Scenario: Rendering Slim
    Given an empty app
    And a file named "config.rb" with:
      """
      """
    And a file named "source/slim.html.slim" with:
      """
      doctype 5
      html lang='en'
        head
          meta charset="utf-8"

        body
          h1 Welcome to Slim
      """
    And the Server is running at "empty_app"
    When I go to "/slim.html"
    Then I should see "<h1>Welcome to Slim</h1>"

  Scenario: Rendering Scss in a Slim filter
    Given an empty app
    And a file named "config.rb" with:
      """
      """
    And a file named "source/scss.html.slim" with:
      """
      doctype 5
      html lang='en'
        head
          meta charset="utf-8"
          scss:
            @import "compass";
            @include global-reset;
        body
          h1 Welcome to Slim
      """
    And a file named "source/sass.html.slim" with:
      """
      doctype 5
      html lang='en'
        head
          meta charset="utf-8"
          sass:
            @import "compass"
            +global-reset
        body
          h1 Welcome to Slim
      """
    And a file named "source/error.html.slim" with:
      """
      doctype 5
      html lang='en'
        head
          meta charset="utf-8"
          scss:
            +global-reset
        body
          h1 Welcome to Slim
      """
    And the Server is running at "empty_app"
    When I go to "/scss.html"
    Then I should see "html, body, div"
    When I go to "/sass.html"
    Then I should see "html, body, div"
    When I go to "/error.html"
    Then I should see "Syntax error"

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
middleman-core-3.3.4 features/slim.feature
middleman-core-3.3.3 features/slim.feature
middleman-core-3.3.2 features/slim.feature
middleman-core-3.3.1 features/slim.feature
middleman-core-3.3.0 features/slim.feature
middleman-core-3.2.2 features/slim.feature
middleman-core-3.2.1 features/slim.feature
middleman-core-3.2.0 features/slim.feature
middleman-core-3.1.6 features/slim.feature
middleman-core-3.1.5 features/slim.feature
middleman-core-3.1.4 features/slim.feature
middleman-core-3.1.3 features/slim.feature
middleman-core-3.1.2 features/slim.feature
middleman-core-3.1.1 features/slim.feature
middleman-core-3.1.0 features/slim.feature
middleman-core-3.1.0.rc.4 features/slim.feature
middleman-core-3.1.0.rc.3 features/slim.feature
middleman-core-3.1.0.rc.2 features/slim.feature
middleman-core-3.1.0.rc.1 features/slim.feature
middleman-more-3.0.14 features/slim.feature