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:
parent
d7636bae4d
commit
3681187e6c
@ -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
|
Loading…
Reference in New Issue
Block a user