Sha256: 712b7989afbe82c0e746ca85378bd37e166832f06ccb9bbe235e483503426d8e

Contents?: true

Size: 1.22 KB

Versions: 85

Compression:

Stored size: 1.22 KB

Contents

unless defined?(Sass::MERB_LOADED)
  Sass::MERB_LOADED = true

  version = Merb::VERSION.split('.').map { |n| n.to_i }
  if version[0] <= 0 && version[1] < 5
    root = MERB_ROOT
    env  = MERB_ENV
  else
    root = Merb.root.to_s
    env  = Merb.environment
  end

  Sass::Plugin.options.merge!(:template_location => root + '/public/stylesheets/sass',
                              :css_location      => root + '/public/stylesheets',
                              :cache_location    => root + '/tmp/sass-cache',
                              :always_check      => env != "production",
                              :quiet             => env != "production",
                              :full_exception    => env != "production")
  config = Merb::Plugins.config[:sass] || Merb::Plugins.config["sass"] || {}

  if defined? config.symbolize_keys!
    config.symbolize_keys!
  end

  Sass::Plugin.options.merge!(config)

  require 'sass/plugin/rack'
  class Sass::Plugin::MerbBootLoader < Merb::BootLoader
    after Merb::BootLoader::RackUpApplication

    def self.run
      # Apparently there's no better way than this to add Sass
      # to Merb's Rack stack.
      Merb::Config[:app] = Sass::Plugin::Rack.new(Merb::Config[:app])
    end
  end
end

Version data entries

85 entries across 85 versions & 4 rubygems

Version Path
radiant-1.0.0.rc1 vendor/plugins/haml/lib/sass/plugin/merb.rb
haml-3.0.25 lib/sass/plugin/merb.rb
radiantcms-couchrest_model-0.1.3 vendor/plugins/haml/lib/sass/plugin/merb.rb
radiantcms-couchrest_model-0.1.2 vendor/plugins/haml/lib/sass/plugin/merb.rb
radiantcms-couchrest_model-0.1.1 vendor/plugins/haml/lib/sass/plugin/merb.rb
radiantcms-couchrest_model-0.1 vendor/plugins/haml/lib/sass/plugin/merb.rb
haml-3.0.24 lib/sass/plugin/merb.rb
haml-3.0.23 lib/sass/plugin/merb.rb
haml-3.0.22 lib/sass/plugin/merb.rb
haml-3.0.21 lib/sass/plugin/merb.rb
haml-edge-3.1.73 lib/sass/plugin/merb.rb
haml-edge-3.1.72 lib/sass/plugin/merb.rb
haml-edge-3.1.71 lib/sass/plugin/merb.rb
haml-3.0.18 lib/sass/plugin/merb.rb
haml-edge-3.1.70 lib/sass/plugin/merb.rb
haml-edge-3.1.69 lib/sass/plugin/merb.rb
haml-edge-3.1.68 lib/sass/plugin/merb.rb
haml-edge-3.1.67 lib/sass/plugin/merb.rb
haml-edge-3.1.66 lib/sass/plugin/merb.rb
haml-edge-3.1.65 lib/sass/plugin/merb.rb