Registry / utility / html-attributes-utils

html-attributes-utils

JSON →
library1.0.2rbrubygemsunverified

A small collection of utilities to ease working with hashes of HTML attributes.

gem install html-attributes-utils
INSTALL
IMPORT
SIG · HTML-ATTRIBUTES-UT
H
html-attributes-utils
utilityrubyv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HtmlAttributesUtils
require 'html-attributes-utils'

Merges two HTML attribute hashes.

require 'html-attributes-utils' attrs = { class: 'btn', data: { controller: 'modal' } } merged = HtmlAttributesUtils.merge(attrs, { class: 'primary' }) puts merged
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
html-attributes-utils — gem install html-attributes-utils · libregistry