/usr/lib/ruby/1.9.1/ramaze/view/sass.rb is in libramaze-ruby1.9.1 2010.06.18-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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 = View.compile(string){|s| ::Sass::Engine.new(s, options) }
css = sass.to_css
return css, 'text/css'
end
end
end
end
|