Sha256: 8c4a1cd473695468460a9d35841fa78278b0069a910061f3b86b728a1cbbef02

Contents?: true

Size: 428 Bytes

Versions: 7

Compression:

Stored size: 428 Bytes

Contents

require 'haml/util'
require 'sass/engine'

module Ramaze
  module View
    module Sass
      def self.call(action, string)
        options = action.options

        if sass_options = action.instance.ancestral_trait[:sass_options]
          options = options.merge(sass_options)
        end

        sass = ::Sass::Engine.new(string, options)
        css = sass.to_css

        return css, 'text/css'
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
Pistos-ramaze-2009.04.08 lib/ramaze/view/sass.rb
manveru-ramaze-2009.04.01 lib/ramaze/view/sass.rb
manveru-ramaze-2009.04.08 lib/ramaze/view/sass.rb
manveru-ramaze-2009.04.18 lib/ramaze/view/sass.rb
manveru-ramaze-2009.04.22 lib/ramaze/view/sass.rb
manveru-ramaze-2009.04 lib/ramaze/view/sass.rb
ramaze-2009.04 lib/ramaze/view/sass.rb