Sprockets processor for Google's Closure tools.
Integrating with Rails 3
If you want to use closure as your JS library in Rails 3, add the gem to your Gemfile:
gem 'closure-sprockets' gem 'closure-compiler' # optional, see below
config.assets.js_compressor = Closure::Compiler.new
Finally, download the latest version of closure library from Google and put it in
If you decided to put your
closure-library directory somewhere other than
vendor/assets, then you'll have to update your environment config with the right path:
config.closure.lib = 'vendor/assets/path/to/closure-library'
(MIT License) - Copyright (c) 2011 Ilya Grigorik