A Rails application template used to setup a new Rails app using Paul Irish's HTML5 Boilerplate (http://html5boilerplate.com/)
This template was inspired by Logan Leger's Rails 3 JQuery Template (https://github.com/lleger/Rails-3-jQuery)
Rails 3:
rails new <appname> -m <path/to/rails3.rb>
Can also be run directly from github:
Rails 3:
rails new <appname> -m https://github.com/russfrisch/Rails-HTML5-Boilerplate-Template/raw/master/rails3.rb
This template does the following:
- Removes default Prototype/Scriptaculous JavaScripts and Rails driver
- Downloads the latest JQuery Rails driver and places into the javascripts folder
- Downloads HTML5 Boilerplate assets: JavaScripts, Stylesheets, icons, .htaccess, etc.
- Creates an empty application.css and then adds to it an @import to import the scaffold.css.
- Replaces the contents of default application.html.erb layout with the contents of HTML5 boilerplate's index.html
- Modifies the updated application.html.erb to add back in the appropriate default Rails content
- Updates javascript :defaults expansion to include jquery, plugins, and rails driver.
Comming soon with optional support to revert out CoffeeScript and SCSS changes if you so desire.
This is my first template so if there is anything that can be done better or you would like to see tweaked, please send me a push request.