An open API service indexing awesome lists of open source software.

https://github.com/komposable/klassnames

Helper to simplify conditional CSS classes in Ruby on Rails views.
https://github.com/komposable/klassnames

actionview css helpers rails

Last synced: 10 months ago
JSON representation

Helper to simplify conditional CSS classes in Ruby on Rails views.

Awesome Lists containing this project

README

          

# Klassnames

[![Build Status](https://travis-ci.org/komposable/klassnames.svg?branch=master)](https://travis-ci.org/komposable/klassnames)

View helper to simplify conditional class in view.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'klassnames'
```

## Usage

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


```

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).