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?
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue