diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-17 22:56:22 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-17 22:56:22 +0100 |
commit | fb6f4bdc065e414dc4e8a56ab2149ba6cafd4107 (patch) | |
tree | 330f04b4a0ebb39898ac5b66aa8e58042e9cfdae /spec/spec_helper.rb | |
parent | 8c1749d35061ee6a4954580697b523c7354de16c (diff) | |
download | zorglub-fb6f4bdc065e414dc4e8a56ab2149ba6cafd4107.zip zorglub-fb6f4bdc065e414dc4e8a56ab2149ba6cafd4107.tar.gz |
add Sass engine specs
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 660bd39..ee4596e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -13,6 +13,7 @@ require 'yaml' require 'zorglub' require 'zorglub/engines/file' require 'zorglub/engines/haml' +require 'zorglub/engines/sass' # HASH_PROC = Proc.new { |path,obj| {:path=>path,:layout=>obj.layout,:view=>obj.view,:args=>obj.args,:map=>obj.map}.to_yaml } STATIC_PROC = Proc.new { |path,obj| ["VAL #{obj.value}",'text/static'] } @@ -78,6 +79,8 @@ class Node0 < Zorglub::Node case name when 'haml' engine! :haml + when 'sass' + engine! :sass end end end @@ -172,6 +175,7 @@ end APP = Zorglub::App.new do register_engine! :file, nil, Zorglub::Engines::File.method(:proc) register_engine! :haml, 'haml', Zorglub::Engines::Haml.method(:proc) + register_engine! :sass, 'scss', Zorglub::Engines::Sass.method(:proc) register_engine! 'default', nil, HASH_PROC register_engine! 'engine-1', 'spec', HASH_PROC register_engine! 'engine-2', 'spec', HASH_PROC |