3 ms·
Can someone with knowledge of both this and rails 3.1 explain the difference. Seems very similar.
by nestlequ1k 14y ago
Can someone with knowledge of both this and rails 3.1 explain the difference. Seems very similar.
- byroot 14y agoYou're right, they basically reimplemented Sprockets a.k.a rails assets manager.
- amalag 14y agoYes this article is written for people not using Rails & Sprockets. Pretty amazing the best practices that Rails asset pipeline enforces. It will also concatenate the JS & CSS files to reduce HTTP requests and does automatic .gz files on disk. When used with asset_sync gem it can also push these to S3 or your CDN to avoid your web server altogether.
- sirn 14y agoIn Python world we have webassets[1] that does something similar (to Jammit, anyway). It is a little bit more complicated to use than Sprockets but I'd argue that it is also a bit more flexible. (Thanks to filters chaining e.g. compile SASS, merge them, add vendor prefixes, optimize, compress then Gzip as a single chain.) [1] http://elsdoerfer.name/docs/webassets/ http://elsdoerfer.name/docs/webassets/