Sha256: 5da72510a71a087902e4886b04727194a36ba83e3369a77cec1703d710367a56
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
Ramaze.setup(:verbose => false) do gem 'haml' gem 'sass' end require 'haml/util' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-2012.04.14 | lib/ramaze/view/sass.rb |
ramaze-2012.03.07 | lib/ramaze/view/sass.rb |