timcharper / bundle-fu

Ruby on Rails plugin - CSS/JS asset bundling in 10 seconds or less!

This URL has Read+Write access

Tim Harper (author)
Tue Aug 12 23:55:54 -0700 2008
commit  1fea5b9883ba7558fb53c7162aa9cfce86ec9806
tree    36dbd27a50aff620a6ec04f6c433fe480205fb09
parent  d4d92ddb68e98a8e2973ae52d622b53a160d9fcb parent  e8460ccbd04f358b4854e0c4b9dfdb6767b72e2c
name age message
file MIT-LICENSE Fri Aug 10 20:07:13 -0700 2007 initial import git-svn-id: http://bundle-fu.go... [timcharper]
file README.textile Tue Aug 12 23:54:12 -0700 2008 textile'd README. added install command [timcharper]
file environment.rb Tue Oct 30 21:03:05 -0700 2007 js minimizer some refactoring, code cleanup gi... [timcharper]
file init.rb Loading commit data...
directory lib/
directory spec/
README.textile

Bundle fu
-—————

Each css / js you load causes your site to load slower! You can speed things up
exponentially by simply combining all your css/js files into one file each.

Bundle_fu makes it easy to do. It’s as easy as 1, 2!

USAGE / INSTALLATION
-——————————-

Step 1

Install this plugin

script/plugin install git://github.com/timcharper/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 params[:style] %>
    <script src="javascripts/application.js" type="text/javascript"></script>
    ...
  <% end %>

That’s it!

More info