module Bootstrap::IASD
Constants
- VERSION
Public Class Methods
load!()
click to toggle source
# File lib/iasd-bootstrap-sass.rb, line 9 def self.load! if compass? #require 'bootstrap-sass/compass_functions' register_compass_extension elsif asset_pipeline? #TODO test this #require 'bootstrap-sass/sass_functions' end if !(compass?) raise Bootstrap::FrameworkNotFound, "iasd-bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded" end require 'bootstrap-sass' require 'rgbapng' # require 'font-awesome-sass-rails' stylesheets = File.expand_path(File.join("..", 'stylesheets')) ::Sass.load_paths << stylesheets end
Private Class Methods
asset_pipeline?()
click to toggle source
# File lib/iasd-bootstrap-sass.rb, line 32 def self.asset_pipeline? defined?(::Sprockets) end
compass?()
click to toggle source
# File lib/iasd-bootstrap-sass.rb, line 36 def self.compass? defined?(::Compass) end
register_compass_extension()
click to toggle source
# File lib/iasd-bootstrap-sass.rb, line 40 def self.register_compass_extension base = File.join(File.dirname(__FILE__), '..') styles = File.join(base, 'stylesheets') templates = File.join(base, 'templates') ::Compass::Frameworks.register('iasd-bootstrap', :path => base, :stylesheets_directory => styles, :templates_directory => templates) end