adding :coffeescript haml filter
This commit is contained in:
parent
ec1bdd2fb3
commit
cc73d4c2c6
|
@ -5,3 +5,8 @@ Feature: Support coffee-script
|
||||||
Given the Server is running
|
Given the Server is running
|
||||||
When I go to "/javascripts/coffee_test.js"
|
When I go to "/javascripts/coffee_test.js"
|
||||||
Then I should see "Array.prototype.slice"
|
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
|
with_layout false do
|
||||||
page "/inline-css.html"
|
page "/inline-css.html"
|
||||||
page "/inline-js.html"
|
page "/inline-js.html"
|
||||||
|
page "/inline-coffeescript.html"
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/page-class.html" do
|
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 "haml"
|
||||||
|
require "coffee-filter"
|
||||||
|
|
||||||
module Middleman
|
module Middleman
|
||||||
module Renderers
|
module Renderers
|
||||||
|
|
|
@ -30,6 +30,7 @@ Gem::Specification.new do |s|
|
||||||
s.add_runtime_dependency("rack-test", ["~> 0.5.0"])
|
s.add_runtime_dependency("rack-test", ["~> 0.5.0"])
|
||||||
s.add_runtime_dependency("uglifier", ["~> 0.5.0"])
|
s.add_runtime_dependency("uglifier", ["~> 0.5.0"])
|
||||||
s.add_runtime_dependency("haml", ["~> 3.1.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("sass", ["~> 3.1.0"])
|
||||||
s.add_runtime_dependency("compass", ["~> 0.11.1"])
|
s.add_runtime_dependency("compass", ["~> 0.11.1"])
|
||||||
s.add_runtime_dependency("coffee-script", ["~> 2.2.0"])
|
s.add_runtime_dependency("coffee-script", ["~> 2.2.0"])
|
||||||
|
|
Loading…
Reference in a new issue