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)
|
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
|
Loading…
Reference in New Issue
Block a user