Just do a simple require for sass, haml-edge will have to be loaded by the user explicitly if they want that.

Fall back to loading rubygems to load sass if it cannot be loaded.
This commit is contained in:
Chris Eppstein 2009-08-03 09:29:13 -07:00
parent d7636bae4d
commit 3681187e6c

View File

@ -1,10 +1,8 @@
unless defined?(Sass) unless defined?(Sass)
require 'rubygems'
begin begin
gem 'haml-edge', '>= 2.3.0' require 'sass'
$stderr.puts "Loading haml-edge gem." rescue LoadError
rescue Exception require 'rubygems'
#pass
end
require 'sass' require 'sass'
end end
end