{"id":13828955,"url":"https://github.com/stepanvanzuriak/picohtml","last_synced_at":"2025-07-09T08:30:53.263Z","repository":{"id":51164940,"uuid":"147995686","full_name":"stepanvanzuriak/picohtml","owner":"stepanvanzuriak","description":"HTML template strings","archived":true,"fork":false,"pushed_at":"2020-07-18T05:23:24.000Z","size":1423,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-28T13:57:09.056Z","etag":null,"topics":["dom","pico","render","template-string"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/stepanvanzuriak.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":"2018-09-09T05:23:12.000Z","updated_at":"2023-04-08T11:28:09.000Z","dependencies_parsed_at":"2022-09-02T22:11:56.074Z","dependency_job_id":null,"html_url":"https://github.com/stepanvanzuriak/picohtml","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanvanzuriak%2Fpicohtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanvanzuriak%2Fpicohtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanvanzuriak%2Fpicohtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanvanzuriak%2Fpicohtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stepanvanzuriak","download_url":"https://codeload.github.com/stepanvanzuriak/picohtml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225517534,"owners_count":17483515,"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":["dom","pico","render","template-string"],"created_at":"2024-08-04T09:03:22.400Z","updated_at":"2024-11-20T09:30:25.432Z","avatar_url":"https://github.com/stepanvanzuriak.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003ePowerfully \u003cb\u003e~2kB (gzip)\u003c/b\u003e HTML template strings\u003c/h2\u003e\n\n# Installation\n\n```bash\n$ npm install picohtml\n```\n\n# Usage\n\n```js\nimport { html, render } from \"picohtml\";\n\nconst el = html`\u003ch1\u003eHello planet\u003c/h1\u003e`;\n\nrender(el, document.body);\n```\n\n## Attaching event listeners\n\n```js\nimport { html, render } from \"picohtml\";\n\nconst click = () =\u003e alert(\"Hello planet!\");\nconst el = html`\u003cbutton onclick=${click}\u003eClick\u003c/button\u003e`;\n\nrender(el, document.body);\n```\n\n## Insert template literal and picohtml literal\n\n```js\nimport { html, render, raw } from \"picohtml\";\n\nconst text = `\u003cp\u003eText\u003c/p\u003e`;\nconst htmlText = () =\u003e html`\u003cp\u003eHTML Text\u003c/p\u003e`;\nconst el = html`\u003cdiv\u003e${text} ${raw(htmlText())}\u003c/div\u003e`;\n\nrender(el, document.body);\n```\n\n## License\n\n[MIT](./LICENSE)\n\n## See Also\n\n- [nanohtml](https://github.com/choojs/nanohtml)\n- [lit-html](https://github.com/Polymer/lit-html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepanvanzuriak%2Fpicohtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepanvanzuriak%2Fpicohtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepanvanzuriak%2Fpicohtml/lists"}