module Roda::RodaPlugins::Assets::ClassMethods

def compress_yui(content, meth)

Compress the CSS/JS using YUI Compressor, requires java runtime
def compress_yui(content, meth)
  require 'yuicompressor'
  ::YUICompressor.public_send(meth, content, :munge => true)
rescue ::Errno::ENOENT => e
  raise CompressorNotFound, "#{e.class}: #{e.message}", e.backtrace
end