Breezeblocks

Gem Version

Prepackaged patterns and components built with Bourbon and Neat, based on Refills

Requirements

Installation for Ruby on Rails

  1. Add Breezeblocks to your Gemfile:
  gem 'breezeblocks'
  1. Then run:
  bundle install
  1. Use the following Rails generators:

List all available snippets:

  rails generate breezeblocks:list

Add a snippet:

  rails generate breezeblocks:import SNIPPET

If you want to generate coffeescript instead of javascript, simply add --coffee

  rails generate breezeblocks:import SNIPPET --coffee

This copies the snippet’s partial to app/views/breezeblocks, the stylesheet to app/assets/stylesheets/breezeblocks and the JavaScript to app/assets/javascripts/breezeblocks

Contributing

If you want to improve or add a snippet, please do so via pull request. If you rename/remove/add any files to the repository, please make sure that the build reflects that change. Add your changed file to the SNIPPETS constant in the test to have it tested.

Run rake to start the spec tests.

Credits

Breezeblocks owes everything to Refills, which is maintained and funded by thoughtbot, inc.