{"id":51586015,"url":"https://github.com/waddie/html2hiccup","last_synced_at":"2026-07-11T10:32:17.199Z","repository":{"id":359325009,"uuid":"1244839726","full_name":"waddie/html2hiccup","owner":"waddie","description":"HTML-\u003ehiccup transformer, a la Calva, but as a babashka task.","archived":false,"fork":false,"pushed_at":"2026-05-21T10:29:13.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-21T18:45:31.252Z","etag":null,"topics":["babashka","clojure","hiccup","html"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waddie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-20T16:43:11.000Z","updated_at":"2026-05-21T10:29:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/waddie/html2hiccup","commit_stats":null,"previous_names":["waddie/html2hiccup"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/waddie/html2hiccup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waddie%2Fhtml2hiccup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waddie%2Fhtml2hiccup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waddie%2Fhtml2hiccup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waddie%2Fhtml2hiccup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waddie","download_url":"https://codeload.github.com/waddie/html2hiccup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waddie%2Fhtml2hiccup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35360371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["babashka","clojure","hiccup","html"],"created_at":"2026-07-11T10:32:17.095Z","updated_at":"2026-07-11T10:32:17.187Z","avatar_url":"https://github.com/waddie.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html2hiccup\n\nHTML-\u003ehiccup transformer, a la Calva, but as a babashka task.\n\n## Usage\n\n`html2hiccup [options]`\n\n`html2hiccup [options] file1.html file2.htm ...`\n\n### No files\n\n- Reads HTML from `stdin`\n- Writes hiccup to `stdout`\n\n### With files\n\n- Reads supplied files\n- Writes sibling `.edn` files\n\n### Options\n\n- **`--add-classes-to-tag-keyword`** `true`|`false` (default: `true`)\n\n  Controls how CSS classes are handled in the output:\n\n  - **`true`**: Classes that can be valid Clojure keywords are attached directly\n    to the tag using hiccup's dot notation (e.g., `\u003cdiv class=\"btn primary\"\u003e`\n    becomes `[:div.btn.primary]`)\n\n  - **`false`**: All classes remain in a `:class` attribute as a vector (e.g.,\n    `[:div {:class [\"btn\" \"primary\"]}]`)\n\n  Classes containing special characters (like hyphens, dots, or starting with\n  numbers) that can't be keywords are always placed in the `:class` attribute\n  regardless of this setting.\n\n- **`--kebab-attrs`** `true`|`false` (default: `false`)\n\n  Controls the casing of HTML attribute names in the output:\n\n  - **`true`**: Attribute names are converted to kebab-case using the\n    `camel-snake-kebab` library (e.g., `dataFooBar` → `:data-foo-bar`, `innerHTML`\n    → `:inner-html`)\n\n  - **`false`**: Attribute names are lowercased (e.g., `dataFooBar`\n    → `:datafoob`)\n\n  Special cases like `baseprofile` → `:base-profile` and `viewbox` → `:view-box`\n  are always handled correctly regardless of this setting.\n\n- **`--mapify-style`** `true`|`false` (default: `false`)\n\n  Controls how the CSS `style` attribute is represented:\n\n  - **`true`**: The style string is parsed and converted to a map with Clojure\n    keywords as keys (e.g., `style=\"color: red; font-size: 14px\"` becomes `{:style\n{:color \"red\" :font-size 14.0}}`). Numeric values are converted to numbers, and\n    alphabetic values become keywords.\n\n  - **`false`**: The style remains as a CSS string (e.g., `{:style \"color: red;\nfont-size: 14px\"}`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaddie%2Fhtml2hiccup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaddie%2Fhtml2hiccup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaddie%2Fhtml2hiccup/lists"}