My favorites | Sign in
Project Logo
             
Code license: MIT License
Labels: rubyonrails, plugin, asset, packager, bundle
People details
Project owners:
  timcharper

RAILS 2.0 READY!

Version 1.2.2 released Oct 31, 2007. ChangeLog.


WHY BUNDLE-FU IS SPECIAL


Web 2.0 sites have lots of tiny javascript/css files, which causes one extra round trip per file to the server and back! This is bad! Bundle-fu throws it all up into a big package and sends it out all at once.

Bundle-fu can speed your load time up around 50%.

It:


USAGE / INSTALLATION


Step 1

Install this plugin

git clone git://github.com/timcharper/bundle-fu.git vendor/plugins/bundle-fu && rm -rf vendor/plugins/bundle-fu/.git

Step 2

Put the following around your stylesheets/javascripts (note it works with any method of including assets!):

  <% bundle do %>
    ...
    <%= javascript_include_tag "prototype" %>
    <%= stylesheet_link_tag "basic.css" %>
    <%= calendar_date_select_includes "red" %>
    <script src="javascripts/application.js" type="text/javascript"></script>
    ...
  <% end %>

That's it!


HELP



OTHER RUBY ON RAILS ASSET BUNDLERS


Bundle-fu isn't the only Ruby on Rails plug-in that will bundle assets. It simply has a new approach to doing so.

Other asset bundling solutions:

Author:

Tim C. Harper - irb(main):001:0> ( 'tim_see_harperATgmail._see_om'.gsub('_see_', 'c').gsub('AT', '@') )








Hosted by Google Code