Project

merryh5bp

0.0
No commit activity in last 3 years
No release in over 3 years
Use HTML5 Boilerplate in Rails apps
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.6
>= 0.4.0
>= 3.0.4
>= 2.0.0.beta
 Project Readme

Merryh5bp¶ ↑

This gem provides several default files for html5 development on rails. We use html5-boilerplate project files and make them works in a rails environment.

Check html5-boilerplate for more detail on this project : html5boilerplate.com/

gem 'merryh5bp'
bundle install
rake merryh5bp:setup

The setup rake task :

  • remove javascripts protypes files

  • replace the content of rails default layout application.html.erb by the content of index.html from html5-boilerplate. Add several rails stuffs (csrf_meta_tag, yield in the main div, yield(:head) in the <head>, yield(:foot) at the bottom). Replace the css and js folder name of H5BP by the Rails naming style : stylesheets/ and javascripts/

  • copy H5BP css and js assets in the public directory (keeping application.js instead of script.js).

About JQuery¶ ↑

H5BP try to catch the current version of jquery from Google CDN and fallback to javascripts/libs/jquery-XXX.min.js if not available. We keep it that way even to stay consistent with H5BP philosophy even if we use jquery-rails gem in our projects.

What we do :

gem 'jquery-rails'
bundle install
rails generate jquery:install
then edit application.js to replace libs/jquery-XXX.min.js by jquery.min.js

VERSION¶ ↑

H5BP : 1.1 jquery : 1.5.1

This project uses MIT-LICENSE.