adding :coffeescript haml filter

This commit is contained in:
Matthias Döring 2011-05-22 17:27:39 +02:00
parent ec1bdd2fb3
commit cc73d4c2c6
5 changed files with 12 additions and 1 deletions

View file

@ -5,3 +5,8 @@ Feature: Support 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"

View file

@ -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

View file

@ -0,0 +1,3 @@
:coffeescript
race = (winner, runners...) ->
print winner, runners

View file

@ -1,4 +1,5 @@
require "haml"
require "coffee-filter"
module Middleman
module Renderers

View file

@ -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"])