Skip to content

Instantly share code, notes, and snippets.

@basicxman
Created September 25, 2011 02:30
Show Gist options
  • Select an option

  • Save basicxman/1240140 to your computer and use it in GitHub Desktop.

Select an option

Save basicxman/1240140 to your computer and use it in GitHub Desktop.
module Sass::Rails
class ScssTemplate
def evaluate(scope, locals, &block)
utils_data = File.read(File.join(File.dirname(__FILE__), "..", "vendor/assets/stylesheets", "cssutils.css.scss"))
Sass::Engine.new(utils_data + data, sass_options(scope)).render
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment