Skip to content

Instantly share code, notes, and snippets.

@topfunky
Forked from mitio/jammit_sass_support.rb
Created August 6, 2011 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save topfunky/1128807 to your computer and use it in GitHub Desktop.
Save topfunky/1128807 to your computer and use it in GitHub Desktop.
SASS support for Jammit in development mode (also with proper plugins support, for e.g. Compass)
# Much simpler, less work. Handles everything SASS can.
require 'haml/util'
require 'sass/engine'
module Jammit
module Helper
SASS_TIMESTAMPS = {}
def include_stylesheets_with_sass(*packages)
unless Rails.env.production?
Sass::Plugin.update_stylesheets
end
include_stylesheets_without_sass(*packages)
end
alias_method_chain :include_stylesheets, :sass
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment