Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sprockets processor for Google's Closure tools
Python Ruby
Tree: 54e3933920

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
README.md
Rakefile
closure-sprockets.gemspec

README.md

Closure Sprockets

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

If you also want to use the closure compressor to minify your Javascript, then change your environment config to:

config.assets.js_compressor = Closure::Compiler.new

Finally, download the latest version of closure library from Google and put it in vendor/assets.

Optional configuration

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'

License

(MIT License) - Copyright (c) 2011 Ilya Grigorik

Something went wrong with that request. Please try again.