{"id":32187521,"url":"https://github.com/8thlight/hiccup","last_synced_at":"2025-10-22T00:09:45.431Z","repository":{"id":12300283,"uuid":"14930655","full_name":"8thlight/hiccup","owner":"8thlight","description":"Fast library for rendering HTML in Clojure","archived":false,"fork":true,"pushed_at":"2014-06-03T23:48:48.000Z","size":596,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":67,"default_branch":"master","last_synced_at":"2025-09-22T03:59:52.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://weavejester.github.com/hiccup","language":"Clojure","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"weavejester/hiccup","license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/8thlight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.html","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-04T17:23:56.000Z","updated_at":"2014-06-03T23:48:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/8thlight/hiccup","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/8thlight/hiccup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8thlight%2Fhiccup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8thlight%2Fhiccup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8thlight%2Fhiccup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8thlight%2Fhiccup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8thlight","download_url":"https://codeload.github.com/8thlight/hiccup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8thlight%2Fhiccup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280354842,"owners_count":26316552,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"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":[],"created_at":"2025-10-22T00:04:44.576Z","updated_at":"2025-10-22T00:09:45.421Z","avatar_url":"https://github.com/8thlight.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hiccup\n======\n\n[![Build Status](https://secure.travis-ci.org/weavejester/hiccup.png)](http://travis-ci.org/weavejester/hiccup)\n\nHiccup is a library for representing HTML in Clojure. It uses vectors\nto represent elements, and maps to represent an element's attributes.\n\nInstall\n-------\n\nAdd the following dependency to your `project.clj` file:\n\n    [hiccup \"1.0.4\"]\n\nDocumentation\n-------------\n\n* [Wiki](https://github.com/weavejester/hiccup/wiki)\n* [API Docs](http://weavejester.github.com/hiccup)\n    \nSyntax\n------\n\nHere is a basic example of Hiccup syntax:\n\n```clojure\nuser=\u003e (use 'hiccup.core)\nnil\nuser=\u003e (html [:span {:class \"foo\"} \"bar\"])\n\"\u003cspan class=\\\"foo\\\"\u003ebar\u003c/span\u003e\"\n```\n\nThe first element of the vector is used as the element name. The second\nattribute can optionally be a map, in which case it is used to supply\nthe element's attributes. Every other element is considered part of the\ntag's body.\n\nHiccup is intelligent enough to render different HTML elements in\ndifferent ways, in order to accommodate browser quirks:\n\n```clojure\nuser=\u003e (html [:script])\n\"\u003cscript\u003e\u003c/script\u003e\"\nuser=\u003e (html [:p])\n\"\u003cp /\u003e\"\n```\n\nAnd provides a CSS-like shortcut for denoting `id` and `class`\nattributes:\n\n```clojure\nuser=\u003e (html [:div#foo.bar.baz \"bang\"])\n\"\u003cdiv id=\\\"foo\\\" class=\\\"bar baz\\\"\u003ebang\u003c/div\u003e\"\n```\n\nIf the body of the element is a seq, its contents will be expanded out\ninto the element body. This makes working with forms like `map` and\n`for` more convenient:\n\n```clojure\nuser=\u003e (html [:ul\n               (for [x (range 1 4)]\n                 [:li x])])\n\"\u003cul\u003e\u003cli\u003e1\u003c/li\u003e\u003cli\u003e2\u003c/li\u003e\u003cli\u003e3\u003c/li\u003e\u003c/ul\u003e\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8thlight%2Fhiccup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8thlight%2Fhiccup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8thlight%2Fhiccup/lists"}