Sha256: cd10597e721797a28ad326456f818902bd2e066097a96f2ca6623f31db2e3ef4
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
Styleguides ====== [![Build Status](https://secure.travis-ci.org/fs/styleguides.png)](http://travis-ci.org/fs/styleguides) Inspired by Thoughtbot's flutie gem. Styleguides allows you create set of style guides for your application which are could be listed in the development by /styleguides path. To add styles to the styleguide add partials to the app/views/styleguides directory. For example: app/views/styleguides/_todo_item.erb: <ol> <li class="todo">This is a todo item</li> </ol> Plugin authors can also add to the styleguide by ensuring that their view path is in `ActionController::Base.view_paths` and by placing a partial under the styleguides directory. For example: ActionController::Base.append_view_path(File.join(File.dirname(__FILE__), 'views')) my_awesome_plugin/views/styleguides/_pagination.erb: <div class="pagination"> <a href="#prev">Previous</a> <a href="#next">Next</a> </div> Installation ------------------------ Styleguides is a Rails engine. Styleguides is recommended to be run as a gem and included in your Gemfile: gem "styleguides" Suggestions, Bugs, Refactoring? ------------------------------- Fork away and create a [Github Issue](http://github.com/fs/styleguides/issues).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
styleguides-0.1 | README.md |