No-hassle integration of YUI with the Rails 3.1 asset pipeline.
This gem vendors the latest YUI 3 for easy use. Once installed, add YUI to your app by adding:
//= require yui
You can use debug or pre-minimized versions by requiring
Rails 3.1 or greater.
Existing Rails project
Add the gem to your
Update your gem bundle:
$ bundle install
New Rails project
You can use the
This will create a new project named 'foo' with yui-rails already installed.
Plans for improvement in no particular order:
- Decide how much (all?) of YUI to vendor (with debug versions everything is ~15.5mb, seems awfully heavy)
- Provide intelligent loader to mimic CDN's ability to load a group of dependencies on demand as a single file
Inspired by the jquery-rails gem by Steve Schwartz.
Copyright (c) 2011 Matt Sanders. Released under the MIT license. Copyright (c) 2012 Trader Analytics Corp. (Hong Kong) Limited. Released under the MIT license.