class Sprockets::YUICompressor

def call(input)

def call(input)
  data = input[:data]
  case input[:content_type]
  when 'application/javascript'
    key = @cache_key + [input[:content_type], input[:data]]
    input[:cache].fetch(key) do
      ::YUI::JavaScriptCompressor.new(@options).compress(data)
    end
  when 'text/css'
    key = @cache_key + [input[:content_type], input[:data]]
    input[:cache].fetch(key) do
      ::YUI::CssCompressor.new(@options).compress(data)
    end
  else
    data
  end
end