Skip to content
Rails (>= 3.1) engine which provides html5boilerplate generators and assets
Ruby JavaScript
Find file
Latest commit 8cc6084 @khelben Merge pull request #15 from cowboyd/patch-1
malformed comment in ERB template
Failed to load latest commit information.
html5-boilerplate @ c20eb1a Updated to version 0.1.7
lib malformed comment in ERB template
test Generator adds 'config.assets.precompile += %w(modernizr.js)' to conf…
vendor/assets Updated to version 0.1.7
.gitmodules added new h5bp repo as submodule
Gemfile Initial version
Guardfile Initial version
LICENSE Updated changelog & readme
Rakefile Updated to version 0.1.7
index.html.patch Updated patch with latests changes
rails-boilerplate.gemspec Initial version

Rails Boilerplate

Rails Boilerplate is a Rails (>= 3.1.0) gem which helps you to use the html 5 boilerplate.

Install & usage

You'll need at least Rails 3.1. Then put this in your Gemfile:

gem "rails-boilerplate"

This gives you a generator boilerplate:install which does the following things:

  • updates app/views/layouts/application.html.erb to include all the elements used in the H5BP:index.html converted to a Rails compatible ERB file, complete with the necessary rails helper calls.

  • adds style.css(renamed to reset.css), modernizr.js and plugins.js as assets

  • copies over some static file (like favicons, touch icons, robots.txt, humans.txt) to the public/ folder.


If you want to checkout the code, be sure to do:

git submodule init
git submodule update


  • add option to strip comments from the application.html.erb
  • add option to exclude google analytics script



  • google analytics scripts (ga.js) only gets attached in production env
  • generator adds config.assets.precompile += %w(modernizr.js) to config/environments/production.rb

0.1.5: 21/nov/2011:

  • updated to html5-boilerplate version


  • initial version.
Something went wrong with that request. Please try again.