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)
require 'rubygems'
begin
gem 'haml-edge', '>= 2.3.0'
$stderr.puts "Loading haml-edge gem."
rescue Exception
#pass
require 'sass'
rescue LoadError
require 'rubygems'
require 'sass'
end
require 'sass'
end