{"id":17336484,"url":"https://github.com/knio/domino","last_synced_at":"2025-10-10T18:07:08.899Z","repository":{"id":15917810,"uuid":"18659522","full_name":"Knio/Domino","owner":"Knio","description":null,"archived":false,"fork":false,"pushed_at":"2014-10-22T01:10:34.000Z","size":292,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T07:30:19.524Z","etag":null,"topics":[],"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/Knio.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":"2014-04-11T02:21:05.000Z","updated_at":"2014-10-22T01:10:34.000Z","dependencies_parsed_at":"2022-09-07T07:51:00.686Z","dependency_job_id":null,"html_url":"https://github.com/Knio/Domino","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Knio/Domino","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knio%2FDomino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knio%2FDomino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knio%2FDomino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knio%2FDomino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Knio","download_url":"https://codeload.github.com/Knio/Domino/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knio%2FDomino/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004908,"owners_count":26083802,"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-10T02:00:06.843Z","response_time":62,"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":"2024-10-15T15:30:32.137Z","updated_at":"2025-10-10T18:07:08.876Z","avatar_url":"https://github.com/Knio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Domino\n======\n\n`Domino` is a Go library for creating and manipulating HTML documents\nusing an elegant DOM API. It allows you to write HTML pages in pure Go\nreasonably concisely, which eliminates the need to learn another template\nlanguage, and lets you take advantage of the more powerful features of Go.\n\nGo:\n\n```go\npackage main\n\nimport \"fmt\"\nimport . \"github.com/Knio/Domino\"\n\nfunc main() {\n\td := NewDocument(\"Dominate your HTML\")\n\n\td.Head.Add(\n\t\tLink(Attr{\"rel\": \"stylesheet\", \"href\": \"style.css\"}),\n\t\tScript(Attr{\"type\": \"text/javascript\", \"src\": \"script.js\"}),\n\t)\n\n\tc := NewContext(d.Body.Div(Attr{\"id\": \"header\"}))\n\n\tc.Push(Ol())\n\tfor _, i := range []string{\"home\", \"about\", \"contact\"} {\n\t\tLi(c, A(i, Attr{\"href\": fmt.Sprintf(\"/%s\", i)}))\n\t}\n\tc.Pop()\n\n\tc.Div(Attr{\"class\": \"body\"}, P(\"Lorem ipsum..\"))\n\n\tfmt.Print(d.IndentString())\n}\n```\n\nHTML:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003ctitle\u003eDominate your HTML\u003c/title\u003e\n        \u003clink href=\"style.css\" rel=\"stylesheet\"\u003e\n        \u003cscript src=\"script.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003cdiv id=\"header\"\u003e\u003c/div\u003e\n        \u003col\u003e\n            \u003cli\u003e\n                \u003ca href=\"/home\"\u003ehome\u003c/a\u003e\n            \u003c/li\u003e\n            \u003cli\u003e\n                \u003ca href=\"/about\"\u003eabout\u003c/a\u003e\n            \u003c/li\u003e\n            \u003cli\u003e\n                \u003ca href=\"/contact\"\u003econtact\u003c/a\u003e\n            \u003c/li\u003e\n        \u003c/ol\u003e\n        \u003cdiv class=\"body\"\u003e\n            \u003cp\u003eLorem ipsum..\u003c/p\u003e\n        \u003c/div\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\nCompatibility\n-------------\n\n`Domino` is compatible with Go 1.1 and above.\n\nInstallation\n------------\n\nThe recommended way to install `domino` is with\n\n```bash\ngo get github.com/Knio/Domino\n```\n\nDeveloped By\n------------\n\n* Tom Flanagan - \u003ctom@zkpq.ca\u003e\n\nGit repository located at\n[github.com/Knio/Domino](//github.com/Knio/Domino)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknio%2Fdomino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknio%2Fdomino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknio%2Fdomino/lists"}