Sha256: b707ccac05d369e4b760009f660c3924772930eb50ff11c6e83ed00253613573
Contents?: true
Size: 443 Bytes
Versions: 3
Compression:
Stored size: 443 Bytes
Contents
require 'haml/util' require 'sass' 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 = View.compile(string){|s| ::Sass::Engine.new(s, options) } css = sass.to_css return css, 'text/css' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramaze-2011.12.28 | lib/ramaze/view/sass.rb |
ramaze-2011.10.23 | lib/ramaze/view/sass.rb |
ramaze-2011.07.25 | lib/ramaze/view/sass.rb |