See https://github.com/adactio/Pattern-Primer
Create little snippets of markup and save them to the "patterns folder." The pattern primer will generate a list of all the patterns in that folder. You will see the pattern rendered as HTML. You will also get the source displayed in a textarea.
- Clone the repo
- run bundle install
- Copy your CSS to public/style.css
- Run the file with 'ruby application.rb' or 'shotgun' if you have the shotgun gem installed (https://github.com/rtomayko/shotgun)
Thanks to @adactio