{"id":86928,"library":"html-attributes-utils","title":"HTML Attributes Utils","description":"A small collection of utilities to ease working with hashes of HTML attributes.","status":"active","version":"1.0.2","language":"ruby","source_language":null,"source_url":"https://github.com/DFE-Digital/html-attributes-utils","tags":["html","attributes","utilities","hash"],"install":[{"cmd":"gem install html-attributes-utils","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'html-attributes-utils', '~> 1.0.2'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"HtmlAttributesUtils","correct":"require 'html-attributes-utils'"}],"quickstart":{"code":"require 'html-attributes-utils'\nattrs = { class: 'btn', data: { controller: 'modal' } }\nmerged = HtmlAttributesUtils.merge(attrs, { class: 'primary' })\nputs merged","lang":"ruby","description":"Merges two HTML attribute hashes."},"warnings":[],"env_vars":null,"search_vec":"'attribut':2,16,18 'collect':6 'eas':10 'hash':13,20 'html':1,15,17 'small':5 'util':3,8,19 'work':11","created_at":"2026-06-19T08:10:35.444101+00:00","updated_at":"2026-06-19T08:10:35.444101+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://govuk-form-builder.netlify.app","github":"https://github.com/DFE-Digital/html-attributes-utils","docs":"http://www.rubydoc.info/gems/html-attributes-utils/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}