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:
parent
e15eef6a47
commit
187814b2b2
1 changed files with 10 additions and 0 deletions
|
@ -7,6 +7,8 @@ module Bootstrap
|
||||||
|
|
||||||
if rails?
|
if rails?
|
||||||
register_rails_engine
|
register_rails_engine
|
||||||
|
elsif lotus?
|
||||||
|
register_lotus
|
||||||
elsif sprockets?
|
elsif sprockets?
|
||||||
register_sprockets
|
register_sprockets
|
||||||
end
|
end
|
||||||
|
@ -48,6 +50,10 @@ module Bootstrap
|
||||||
defined?(::Rails)
|
defined?(::Rails)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def lotus?
|
||||||
|
defined?(::Lotus)
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def configure_sass
|
def configure_sass
|
||||||
|
@ -73,6 +79,10 @@ module Bootstrap
|
||||||
require 'bootstrap-sass/engine'
|
require 'bootstrap-sass/engine'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def register_lotus
|
||||||
|
Lotus::Assets.sources << assets_path
|
||||||
|
end
|
||||||
|
|
||||||
def register_sprockets
|
def register_sprockets
|
||||||
Sprockets.append_path(stylesheets_path)
|
Sprockets.append_path(stylesheets_path)
|
||||||
Sprockets.append_path(fonts_path)
|
Sprockets.append_path(fonts_path)
|
||||||
|
|
Loading…
Add table
Reference in a new issue