Load haml-edge if it's all new and shiny. Closes GH-26.

This commit is contained in:
Chris Eppstein 2009-07-09 12:59:36 -07:00
parent 4d51dead3a
commit 59a6067b3a

View File

@ -1,9 +1,10 @@
unless defined?(Sass) unless defined?(Sass)
require 'rubygems' require 'rubygems'
begin begin
gem 'haml','>= 2.2.0' gem 'haml-edge', '>= 2.3.0'
$stderr.puts "Loading haml-edge gem."
rescue Exception rescue Exception
$stderr.puts "WARNING: haml 2.2 gem not found. Trying to find haml on the load path." #pass
end end
require 'sass' require 'sass'
end end