1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00

Add support for Lotus

This commit is contained in:
Nerian 2015-11-10 16:29:36 +01:00
parent e15eef6a47
commit 187814b2b2

View file

@ -7,6 +7,8 @@ module Bootstrap
if rails?
register_rails_engine
elsif lotus?
register_lotus
elsif sprockets?
register_sprockets
end
@ -48,6 +50,10 @@ module Bootstrap
defined?(::Rails)
end
def lotus?
defined?(::Lotus)
end
private
def configure_sass
@ -73,6 +79,10 @@ module Bootstrap
require 'bootstrap-sass/engine'
end
def register_lotus
Lotus::Assets.sources << assets_path
end
def register_sprockets
Sprockets.append_path(stylesheets_path)
Sprockets.append_path(fonts_path)