{"id":42687482,"url":"https://github.com/skirmish/html","last_synced_at":"2026-01-29T12:40:58.243Z","repository":{"id":57530549,"uuid":"272266007","full_name":"skirmish/html","owner":"skirmish","description":"html generation","archived":false,"fork":false,"pushed_at":"2020-06-19T17:26:14.000Z","size":106,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T15:55:49.632Z","etag":null,"topics":["golang-library","html-generation","html5"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/skirmish.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":"2020-06-14T19:04:17.000Z","updated_at":"2020-06-21T15:47:07.000Z","dependencies_parsed_at":"2022-09-14T00:11:16.906Z","dependency_job_id":null,"html_url":"https://github.com/skirmish/html","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/skirmish/html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skirmish%2Fhtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skirmish%2Fhtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skirmish%2Fhtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skirmish%2Fhtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skirmish","download_url":"https://codeload.github.com/skirmish/html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skirmish%2Fhtml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28877876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang-library","html-generation","html5"],"created_at":"2026-01-29T12:40:58.168Z","updated_at":"2026-01-29T12:40:58.229Z","avatar_url":"https://github.com/skirmish.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Html\n\nA highly opinionated code driven HTML generator.\n\nUsage:\n```golang\n    page := []HtmlElement{\n\t\tDocType(),\n\t\tHtml(Lang(\"en\")).AddElements(\n\t\t\tHead().AddElements(\n\t\t\t\tMeta(Key(\"charset\", \"utf-8\")),\n\t\t\t\tTitle().AddElements(Content(\"Page Title\")),\n\t\t\t\tStyle().AddElements(Content(\n\t\t\t\t\t\"ul.samples {list-style: none; margin: 0; padding: 0;\" +\n\t\t\t\t\t\" margin-block-start: 1px; margin-block-end: 1px;}\\n\" +\n\t\t\t\t\t\"ul.samples li {display: inline-block; width: 300px;}\\n\" +\n\t\t\t\t\t\"ul.samples li.good {background-color: #008000;}\\n\")),\n\t\t\t),\n\t\t\tBody().AddElements(\n\t\t\t\tHeading(Level(1)).AddElements(Content(\"The Title of the Page\")),\n\t\t\t\tP().AddElements(Content(\"This is the first sentence.\"))),\n\t\t\tUl().AddElements(\n\t\t\t\tLi().AddElements(\n\t\t\t\t\tImg(Src(\"data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAAAAABXZoBIAAAA7UlEQVR4\"+\n\t\t\t\t\t\t\"nGJiwAMGXJJZUFCwrmO95LL/3\u0026#43;tBfBaYhByblY1AMIj1ZHLg54sHQSxGqJzBPn4o61/SV4Zn728imyh4\u0026#43;\"+\n\t\t\t\t\t\t\"y8IHNv2/SMWywPmZP/9e5abQXsWNqfxMcz6G4XLtZ8YPjKkMOL0Fve\u0026#43;v244JRmUPz5ckINTNvDD37/lErhkdX\"+\n\t\t\t\t\t\t\"f9/TtNGpesQOyfv7txW/zz708HKJMFVUYvxJSF4dpBbJrUpzz9\u0026#43;/fvr21YpCSK7oKC96QfppS401VwyAdiBpL\"+\n\t\t\t\t\t\t\"ganCsHA7gwJAyX/MIJPWllRtVHOzawEAGhuub//Z8wO1BTEB\u0026#43;0gQEAAD//3QpXYUSeN4MAAAAAElFTkSuQmCC\")),\n\t\t\t\t),\n\t\t\t),\n\t\t),\n\t}\n\n\toutput := \"\"\n\tfor _, el := range page {\n\t\toutput += el.Render()\n\t}\n```\n\nHTML5 elements are currently supported although they are mostly\nonly at the bare minumum.\n\nNotes:\nThis is not optimized yet, first we'll work on correctness, then once it's fairly stable then working on making it \nfaster will happen.\n\nAll valid html5 tags *want* to be implemented, but for now it's driven by the ones currently in use. \n\nTODO:\n * Add Validation\n * Add Variables \u0026 Conditionals\n * Optimize\n * Test\n * Add CSS\n\nHTML Tags\n```\n\u003c!DOCTYPE\u003e\n\u003ca\u003e\n\u003cabbr\u003e\n\u003caddress\u003e\n\u003carea\u003e\n\u003carticle\u003e\n\u003caside\u003e\n\u003caudio\u003e\n\u003cb\u003e\n\u003cbase\u003e\n\u003cbdi\u003e\n\u003cbdo\u003e\n\u003cblockquote\u003e\n\u003cbody\u003e\n\u003cbr\u003e\n\u003cbutton\u003e\n\u003ccanvas\u003e\n\u003ccaption\u003e\n\u003ccite\u003e\n\u003ccode\u003e\n\u003ccol\u003e\n\u003ccolgroup\u003e\n\u003cdata\u003e\n\u003cdatalist\u003e\n\u003cdd\u003e\n\u003cdel\u003e\n\u003cdetails\u003e\n\u003cdfn\u003e\n\u003cdialog\u003e\n\u003cdiv\u003e\n\u003cdl\u003e\n\u003cdt\u003e\n\u003cem\u003e\n\u003cembed\u003e\n\u003cfieldset\u003e\n\u003cfigcaption\u003e\n\u003cfigure\u003e\n\u003cfooter\u003e\n\u003cform\u003e\n\u003ch1\u003e - \u003ch6\u003e\n\u003chead\u003e\n\u003cheader\u003e\n\u003chr\u003e\n\u003chtml\u003e\n\u003ci\u003e\n\u003ciframe\u003e\n\u003cimg\u003e\n\u003cinput\u003e\n\u003cins\u003e\n\u003ckbd\u003e\n\u003clabel\u003e\n\u003clegend\u003e\n\u003cli\u003e\n\u003clink\u003e\n\u003cmain\u003e\n\u003cmap\u003e\n\u003cmark\u003e\n\u003cmeta\u003e\n\u003cmeter\u003e\n\u003cnav\u003e\n\u003cnoscript\u003e\n\u003cobject\u003e\n\u003col\u003e\n\u003coptgroup\u003e\n\u003coption\u003e\n\u003coutput\u003e\n\u003cp\u003e\n\u003cparam\u003e\n\u003cpicture\u003e\n\u003cpre\u003e\n\u003cprogress\u003e\n\u003cq\u003e\n\u003crp\u003e\n\u003crt\u003e\n\u003cruby\u003e\n\u003cs\u003e\n\u003csamp\u003e\n\u003cscript\u003e\n\u003csection\u003e\n\u003cselect\u003e\n\u003csmall\u003e\n\u003csource\u003e\n\u003cspan\u003e\n\u003cstrong\u003e\n\u003cstyle\u003e\n\u003csub\u003e\n\u003csummary\u003e\n\u003csup\u003e\n\u003csvg\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctd\u003e\n\u003ctemplate\u003e\n\u003ctextarea\u003e\n\u003ctfoot\u003e\n\u003cth\u003e\n\u003cthead\u003e\n\u003ctime\u003e\n\u003ctitle\u003e\n\u003ctr\u003e\n\u003ctrack\u003e\n\u003cu\u003e\n\u003cul\u003e\n\u003cvar\u003e\n\u003cvideo\u003e\n\u003cwbr\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskirmish%2Fhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskirmish%2Fhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskirmish%2Fhtml/lists"}