Git Product home page Git Product logo

rails-boilerplate's Introduction

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.

Development

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

git submodule init
git submodule update
bundle

Todo

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

Changelog

0.1.6:

  • 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

0.1.0:

  • initial version.

rails-boilerplate's People

Contributors

khelben avatar cowboyd avatar ekampp avatar yachi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.