adding :coffeescript haml filter
This commit is contained in:
parent
ba2cbb0ceb
commit
bf2741ffc7
|
@ -1,7 +1,12 @@
|
|||
Feature: Support coffee-script
|
||||
In order to offer an alternative when writing Javascript
|
||||
|
||||
|
||||
Scenario: Rendering coffee script
|
||||
Given the Server is running
|
||||
When I go to "/javascripts/coffee_test.js"
|
||||
Then I should see "Array.prototype.slice"
|
||||
|
||||
Scenario: Rendering coffee-script with :coffeescript haml-filter
|
||||
Given the Server is running
|
||||
When I go to "/inline-coffeescript.html"
|
||||
Then I should see "Array.prototype.slice"
|
|
@ -1,6 +1,7 @@
|
|||
with_layout false do
|
||||
page "/inline-css.html"
|
||||
page "/inline-js.html"
|
||||
page "/inline-coffeescript.html"
|
||||
end
|
||||
|
||||
get "/page-class.html" do
|
||||
|
|
3
fixtures/test-app/views/inline-coffeescript.html.haml
Normal file
3
fixtures/test-app/views/inline-coffeescript.html.haml
Normal file
|
@ -0,0 +1,3 @@
|
|||
:coffeescript
|
||||
race = (winner, runners...) ->
|
||||
print winner, runners
|
|
@ -1,4 +1,5 @@
|
|||
require "haml"
|
||||
require "coffee-filter"
|
||||
|
||||
module Middleman
|
||||
module Renderers
|
||||
|
|
|
@ -30,6 +30,7 @@ Gem::Specification.new do |s|
|
|||
s.add_runtime_dependency("rack-test", ["~> 0.5.0"])
|
||||
s.add_runtime_dependency("uglifier", ["~> 0.5.0"])
|
||||
s.add_runtime_dependency("haml", ["~> 3.1.0"])
|
||||
s.add_runtime_dependency("coffee-filter", ["~> 0.1.0"])
|
||||
s.add_runtime_dependency("sass", ["~> 3.1.0"])
|
||||
s.add_runtime_dependency("compass", ["~> 0.11.1"])
|
||||
s.add_runtime_dependency("coffee-script", ["~> 2.2.0"])
|
||||
|
|
Loading…
Reference in a new issue