NitroRails

Short description and motivation.

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

gem "nitro_rails"

And then execute:

$ bundle

Or install it yourself as:

$ gem install nitro_rails

Features

NitroTags

Similar to content_tag with additional functions.

<%= nitro_tag(:h1, "Hello World") %>

Allows for hashed styles:

<%= nitro_tag(:div, "Hello World", style: { color: "red", margin_bottom: 20 })

Allows for easy "nitro_id" via resource and attribut

<%= nitro_tag(:p, resource: @task, attribute: :description) %> <%# data-nitro-id = "task_3:description" %>

Contributing

Contribution directions go here.

License

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