{"id":22808311,"url":"https://github.com/sixarm/sixarm_ruby_html","last_synced_at":"2026-02-24T06:04:39.395Z","repository":{"id":137270510,"uuid":"685749","full_name":"SixArm/sixarm_ruby_html","owner":"SixArm","description":"SixArm.com » Unix » HTML helpers for layouts, lists, tables, etc.","archived":false,"fork":false,"pushed_at":"2025-04-14T09:19:03.000Z","size":400,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T10:29:42.387Z","etag":null,"topics":["extensions","gem","html","ruby"],"latest_commit_sha":null,"homepage":"http://sixarm.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2010-05-25T18:23:40.000Z","updated_at":"2025-04-14T09:19:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"92d73a81-d880-4dad-a037-aa63eab51b35","html_url":"https://github.com/SixArm/sixarm_ruby_html","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SixArm/sixarm_ruby_html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/sixarm_ruby_html/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_html/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263996017,"owners_count":23541398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extensions","gem","html","ruby"],"created_at":"2024-12-12T11:09:01.706Z","updated_at":"2026-02-24T06:04:34.377Z","avatar_url":"https://github.com/SixArm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SixArm.com → Ruby → \u003cbr\u003e HTML utility methods to generate lists, tables, etc.\n                   \n* Doc: \u003chttp://sixarm.com/sixarm_ruby_html/doc\u003e\n* Gem: \u003chttp://rubygems.org/gems/sixarm_ruby_html\u003e\n* Repo: \u003chttp://github.com/sixarm/sixarm_ruby_html\u003e\n\u003c!--header-shut--\u003e\n\n\n## Introduction\n\nHTML utility methods to generate well-formed HTML for tables, lists, etc.\n\nThis is typically to render Ruby objects, such as arrays, as HTML output.\n\nFor docs go to \u003chttp://sixarm.com/sixarm_ruby_html/doc\u003e\n\nWant to help? We're happy to get pull requests.\n\n\n\u003c!--install-open--\u003e\n\n## Install\n\n### Gem\n\nTo install this gem in your shell or terminal:\n\n    gem install sixarm_ruby_html\n\n### Gemfile\n\nTo add this gem to your Gemfile:\n\n    gem 'sixarm_ruby_html'\n\n### Require\n\nTo require the gem in your code:\n\n    require 'sixarm_ruby_html'\n\n\u003c!--install-shut--\u003e\n\n\n## Table Methods\n\n* table - Builds an HTML table from the supplied parameters: string CSS: ID, Class; array of strings: Headers, Footers; array of array of string: Rows\n* tables - Builds one or more HTML tables from a supplied array of arrays (each sub-array holding the params specified for the table method)\n* thead - Builds the thead section of a table from an array of strings\n* th - Returns a TH table cell\n* ths - Returns a string of TH table cells\n* tbody - Builds the tbody section of a table from an array of arrays of strings (each sub-array becomes a table row)\n* tr - Returns a TR table row\n* trs - Returns a string of TR table rows\n* td - Returns a TD table cell\n* tds - Returns a string of TD table cells\n* tfoot - Builds the tfoot section of a table from an array of strings\n\n## Table Examples\n\n    headers = ['a','b','c']\n    footers = ['x','y','z']\n    rows=[['d','e,'f']]\n    table(:id=\u003e'foo', :class=\u003e'bar', :headers=\u003eheaders, :footers=\u003efooters, :rows=\u003erows)\n    =\u003e\n    \u003ctable id=\"foo\" class=\"bar\"\u003e\n    \u003cthead\u003e\n    \u003ctr\u003e\n    \u003cth\u003ea\u003c/th\u003e\n    \u003cth\u003eb\u003c/th\u003e\n    \u003cth\u003ec\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n    \u003ctr\u003e\n    \u003ctd\u003ed\u003c/td\u003e\n    \u003ctd\u003ee\u003c/td\u003e\n    \u003ctd\u003ef\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003c/tbody\u003e\n    \u003ctfoot\u003e\n    \u003ctr\u003e\n    \u003cth\u003ex\u003c/th\u003e\n    \u003cth\u003ey\u003c/th\u003e\n    \u003cth\u003ez\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/tfoot\u003e\n    \u003c/table\u003e\n\n\n## List Methods\n\n* ul - Builds an HTML unordered list from an array of strings or Enumerables\n* uls - Builds one or more HTML unordered lists from an array of arrays of strings or Enumerables (sub-arrays can be a mix of both)\n* li - Returns an LI item\n* lis - Returns a string of LI items\n\n\n## List Examples\n\n    ul(['a','b','c']) =\u003e\n    \u003cul\u003e\u003cli\u003ea\u003c/li\u003e\u003cli\u003eb\u003c/li\u003e\u003cli\u003ec\u003c/li\u003e\u003c/ul\u003e\n\n    uls(['a','b','c'],['d','e','f'],[1,2,3]) =\u003e\n    \u003cul\u003e\u003cli\u003ea\u003c/li\u003e\u003cli\u003eb\u003c/li\u003e\u003cli\u003ec\u003c/li\u003e\u003c/ul\u003e\u003cul\u003e\u003cli\u003ed\u003c/li\u003e\u003cli\u003ee\u003c/li\u003e\u003cli\u003ef\u003c/li\u003e\u003c/ul\u003e\u003cul\u003e\u003cli\u003e1\u003c/li\u003e\u003cli\u003e2\u003c/li\u003e\u003cli\u003e3\u003c/li\u003e\u003c/ul\u003e\n\n\n## Misc Methods\n\n* comment - Return the text parameter wrapped in an HTML comment\n* wrap - Return the text parameter wrapped in a tag pair\n\n\n## Misc Examples\n\n    comment('the following comes from') =\u003e\n    \u003c!-- the following comes from --\u003e\n\n    wrap('foo', 'bar') =\u003e\n    \u003cbar\u003efoo\u003c/bar\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixarm%2Fsixarm_ruby_html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_html/lists"}