Sha256: 4a8583c1022ca940e4e9d408d5017a4a8d9b2dfc4095628a024cc099fcea7d57

Contents?: true

Size: 874 Bytes

Versions: 7

Compression:

Stored size: 874 Bytes

Contents

Feature: Haml templating
  In order to save my fingers and keyboard
  As a programmer building single-page apps
  I want to be able to write my static pages in Haml instead of HTML

  Scenario: Create an HTML file from a Haml template
    Given a file named "template.haml" with:
      """
      !!!
      %html
      """
    When  I run a haml task on "template.haml"
    Then  a file named "template.html" should exist
    And   the file "template.html" should contain:
      """
      <!DOCTYPE html>
      <html></html>
      """

  Scenario: Create any required output directories for storing Haml output
    Given an empty file named "src/views/template.haml"
    When  I run a haml task on "src/views/template.haml" with output to "static/pages"
    Then  a directory named "static/pages" should exist
    And   a file named "static/pages/template.html" should exist

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ggake-0.9.0 features/haml.feature
ggake-0.8.0 features/haml.feature
ggake-0.7.0 features/haml.feature
ggake-0.6.0 features/haml.feature
ggake-0.5.0 features/haml.feature
ggake-0.4.1 features/haml.feature
ggake-0.4.0 features/haml.feature