{"id":16187500,"url":"https://github.com/fiatjaf/hyperscript-go","last_synced_at":"2025-07-07T03:02:51.951Z","repository":{"id":75623789,"uuid":"68766913","full_name":"fiatjaf/hyperscript-go","owner":"fiatjaf","description":"the simplest html generator you'll find in the goniverse","archived":false,"fork":false,"pushed_at":"2016-09-27T01:39:19.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T16:18:53.180Z","etag":null,"topics":["hyperscript","template-engine"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fiatjaf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-09-21T01:17:39.000Z","updated_at":"2019-11-25T22:02:57.000Z","dependencies_parsed_at":"2023-06-07T03:45:27.378Z","dependency_job_id":null,"html_url":"https://github.com/fiatjaf/hyperscript-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiatjaf%2Fhyperscript-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiatjaf%2Fhyperscript-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiatjaf%2Fhyperscript-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiatjaf%2Fhyperscript-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fiatjaf","download_url":"https://codeload.github.com/fiatjaf/hyperscript-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247660267,"owners_count":20974853,"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":["hyperscript","template-engine"],"created_at":"2024-10-10T07:22:13.425Z","updated_at":"2025-04-07T13:28:30.517Z","avatar_url":"https://github.com/fiatjaf.png","language":"Go","readme":"## hyperscript-go\n\nsupersimple [hyperscript](https://github.com/dominictarr/hyperscript)-inspired templating language / html generator for go.\n\n### usage\n\nsomething like\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/fiatjaf/hyperscript-go\"\n)\n\nfunc main() {\n    fmt.Print(h.Element(\"div#container\", nil, h.HH{\n        h.Element(\"h1.title\", nil, h.Text(\"hello stranger\")),\n        h.Element(\".nonsense\", nil, h.HH{\n            h.Element(\"a\", h.A{\"href\": \"#\"}, h.Text(\"click here to do nothing\")),\n            h.HTML(\"\u003ca href='#'\u003eor here\u003c/a\u003e\"),\n        }),\n    }).Render())\n}\n```\n\noutputs `\u003cdiv id=\"container\"\u003e\u003ch1 class=\"title\"\u003ehello stranger\u003c/h1\u003e\u003cdiv class=\"nonsense\"\u003e\u003ca href=\"#\"\u003eclick here to do nothing\u003c/a\u003e\u003ca href='#'\u003eor here\u003c/a\u003e\u003c/div\u003e\u003c/div\u003e`\n\n### be responsible\n\nthis library is very naïve and will fail if pushed to awkward situations. for example, when using special characters in attribute names and values.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiatjaf%2Fhyperscript-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiatjaf%2Fhyperscript-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiatjaf%2Fhyperscript-go/lists"}