module Roda::RodaPlugins::Assets::ClassMethods

def compress_js_closure(content)

Compress the JS using Google Closure Compiler, requires java runtime
def compress_js_closure(content)
  require 'closure-compiler'
  begin
    ::Closure::Compiler.new.compile(content)
  rescue ::Closure::Error => e
    raise CompressorNotFound, "#{e.class}: #{e.message}", e.backtrace
  end
end