JavaScript dependency management and concatenation
Ruby JavaScript CoffeeScript
Pull request Compare This branch is 2723 commits behind rails:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

This is an in-progress rewrite of Sprockets to be released as version 2.0. Please see the 1.0.x branch for information on the current release.

Sprockets 2

Sprockets 2 is a Rack-based asset packaging system that concatenates and serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.

This version is a rewrite of Sprockets that addresses a number of issues with the original version's design.

  • Emphasis on serving, not generating.
  • Support for multiple concatenations.
  • Support for CSS concatenations.
  • Support for CoffeeScript, LESS, Sass and SCSS preprocessing.
  • Simplified, header-comment-based dependency declarations.
  • Opt-in interpolation with ERB support.
  • Serve images and other assets from anywhere in the load path.

More coming soon.