Because in the absence of evidence, one should never assume.
The primary purpose of this gem is to make available, in a single gem, various css tools (i.e. resets/grids) and some cookie-cutter javascripts for the Rails asset pipeline. It kinda just seems to make sense that we should really leverage the power of the asset pipeline which we're already using for getting rid of some fairly mundane and monotonous tasks.
These files are nested under the path 'reset', so if you want to include the a reset, do so with the following sprocket directive:
/*
*= require reset/#{name_of_file}
*/
*= require reset/blueprint
*= require reset/bootstrap
*= require reset/bootstrap.min
*= require reset/eric-meyer
*= require reset/eric-meyer.min
*= require reset/eric-meyer
*= require reset/eric-meyer.min
*= require reset/normalize
*= require reset/normalize.min
*= require reset/yui3
*= require reset/yui3.min
These files are nested under the path 'grid', so if you want to include the a reset, do so with the following sprocket directive:
*= require grid/#{name_of_file}
*= require grid/blueprint #for convenience this will package up blueprint's forms/grid/ie/print/typography files
# If, hypothetically, you decide to completely ignore and punish people for using internet explorer,
# then you're in luck, as I have left you the option of including the blueprint files individually, say:
*= require grid/blueprint/grid
*= require grid/blueprint/print
*= require grid/blueprint/forms
*= require grid/blueprint/typography
# thus forgoing the blueprint i.e. file:
*= require grid/blueprint/ie
*= require grid/960
*= require grid/960_rtl
*= require grid/960_12_col
*= require grid/960_12_col_rtl
*= require grid/960_16_col
*= require grid/960_16_col_rtl
*= require grid/960_24_col
*= require grid/960_24_col_rtl
*= require grid/intuit
*= require grid/fluid_960
*= require grid/bootstrap
*= require grid/bootstrap.min
//= adapt.js # some grid 960 js file
//= bootstrap # version 2.1.0
//= bootstrap.min # version 2.1.0
//= jquery.cookie # how is this not included in jquery core??
//= modernizr # how is this not included in jquery core??
//= yepnope #conditional loading of files
Add this line to your application's Gemfile:
gem 'agnostic-frontend'
And then execute:
$ bundle
Or install it yourself as:
$ gem install agnostic-frontend
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request