Skip to content

komposable/klassnames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.