Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 517 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 517 Bytes

Klassnames

Build Status

View helper to simplify conditional class in view.

Installation

Add this line to your application's Gemfile:

gem 'klassnames'

Usage

  div(class=classnames("one", "two", three: true))
  => <div class="one two three"></div>

License

The gem is available as open source under the terms of the MIT License.