{"id":16154724,"url":"https://github.com/idorobots/s-html","last_synced_at":"2025-04-30T09:51:35.862Z","repository":{"id":62434575,"uuid":"48626675","full_name":"Idorobots/s-html","owner":"Idorobots","description":"A library of composable HTML generators.","archived":false,"fork":false,"pushed_at":"2017-06-03T17:57:53.000Z","size":113,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T20:57:39.819Z","etag":null,"topics":["clojure","functional","html","html-generation"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Idorobots.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}},"created_at":"2015-12-26T23:29:41.000Z","updated_at":"2017-07-23T09:26:05.000Z","dependencies_parsed_at":"2022-11-01T21:16:09.034Z","dependency_job_id":null,"html_url":"https://github.com/Idorobots/s-html","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Idorobots%2Fs-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Idorobots%2Fs-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Idorobots%2Fs-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Idorobots%2Fs-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Idorobots","download_url":"https://codeload.github.com/Idorobots/s-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251679848,"owners_count":21626611,"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":["clojure","functional","html","html-generation"],"created_at":"2024-10-10T01:18:43.806Z","updated_at":"2025-04-30T09:51:35.834Z","avatar_url":"https://github.com/Idorobots.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# s-html [![Build Status](https://travis-ci.org/Idorobots/s-html.svg?branch=master)](https://travis-ci.org/Idorobots/s-html) [![Clojars Project](https://img.shields.io/clojars/v/s-html.svg)](https://clojars.org/s-html)\n\nA library of composable, S-expression-based HTML generators.\n\n## Usage\n\n[API docs.](https://idorobots.github.io/s-html/) Use provided functions to compose HTML documents:\n\n\n``` clojure\n(require '[s-html.tags.html :refer [body div head html h1 h2 h3 h4 h5 h6 title]])\n\n(def container (partial div {:class :container}))\n\n(defn hello-world-div [tag]\n  (container (tag \"Hello world!\")))\n\n(defn hello-world [title-str]\n  (html (head (title title-str)\n        (body (map hello-world-div\n              [h1 h2 h3 h4 h5 h6])))))\n\n(require '[s-html.print :refer [html-\u003estr]])\n\n(html-\u003estr (hello-world \"Hi!\"))\n```\n\n## License\n\nCopyright © 2015-2016 Kajetan Rzepecki \u003ckajtek@idorobots.org\u003e\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidorobots%2Fs-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidorobots%2Fs-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidorobots%2Fs-html/lists"}