1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

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

@ -1,7 +1,12 @@
Feature: Support coffee-script Feature: Support coffee-script
In order to offer an alternative when writing Javascript In order to offer an alternative when writing Javascript
Scenario: Rendering coffee script Scenario: Rendering 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"
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" Then I should see "Array.prototype.slice"

View file

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

View file

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

View file

@ -1,4 +1,5 @@
require "haml" require "haml"
require "coffee-filter"
module Middleman module Middleman
module Renderers 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("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"])