{"id":16221538,"url":"https://github.com/vidhanio/hypertext","last_synced_at":"2025-04-04T07:07:41.496Z","repository":{"id":216735725,"uuid":"742242889","full_name":"vidhanio/hypertext","owner":"vidhanio","description":"A blazing fast type-checked HTML macro crate.","archived":false,"fork":false,"pushed_at":"2024-10-08T06:39:53.000Z","size":185,"stargazers_count":72,"open_issues_count":10,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-11T12:08:16.227Z","etag":null,"topics":["html","macro","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/hypertext","language":"Rust","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/vidhanio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-01-12T03:34:30.000Z","updated_at":"2024-10-04T19:32:09.000Z","dependencies_parsed_at":"2024-01-18T04:43:26.982Z","dependency_job_id":"dd913780-0826-4ae2-8f8c-aeb954b146ee","html_url":"https://github.com/vidhanio/hypertext","commit_stats":null,"previous_names":["vidhanio/hypertext"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidhanio%2Fhypertext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidhanio%2Fhypertext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidhanio%2Fhypertext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidhanio%2Fhypertext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vidhanio","download_url":"https://codeload.github.com/vidhanio/hypertext/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135144,"owners_count":20889421,"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":["html","macro","rust"],"created_at":"2024-10-10T12:08:37.854Z","updated_at":"2025-04-04T07:07:41.479Z","avatar_url":"https://github.com/vidhanio.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# `hypertext`\n\nA blazing fast type-checked HTML macro crate.\n\n## Features\n\n- Type checking for element names/attributes\n  - Completely extensible for use with non-standard elements/attributes\n- `#![no_std]` support\n- Automatic escaping\n- Lazy rendering by default to avoid multiple allocations\n  - Results in outstanding performance in cases of nested documents, which other libraries may falter in\n\n## Projects Using `hypertext`\n\n- [vidhan.io](https://github.com/vidhanio/site), my website\n\nMake a pull request to list your project here!\n\n## Example\n\n```rust\nuse hypertext::{html_elements, GlobalAttributes, RenderIterator, Renderable};\n\nlet shopping_list = [\"milk\", \"eggs\", \"bread\"];\n\nlet shopping_list_maud = hypertext::maud! {\n    div {\n        h1 { \"Shopping List\" }\n        ul {\n            @for (\u0026item, i) in shopping_list.iter().zip(1..) {\n                li.item {\n                    input #{ \"item-\" (i) } type=\"checkbox\";\n                    label for={ \"item-\" (i) } { (item) }\n                }\n            }\n        }\n    }\n}\n.render();\n\n// or, alternatively:\n\nlet shopping_list_rsx = hypertext::rsx! {\n    \u003cdiv\u003e\n        \u003ch1\u003eShopping List\u003c/h1\u003e\n        \u003cul\u003e\n            { shopping_list.iter().zip(1..).map(|(\u0026item, i)| hypertext::rsx_move! {\n                \u003cli class=\"item\"\u003e\n                    \u003cinput id=format!(\"item-{i}\") type=\"checkbox\"\u003e\n                    \u003clabel for=format!(\"item-{i}\")\u003e{ item }\u003c/label\u003e\n                \u003c/li\u003e\n            }).render_all() }\n        \u003c/ul\u003e\n    \u003c/div\u003e\n}\n.render();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidhanio%2Fhypertext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvidhanio%2Fhypertext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidhanio%2Fhypertext/lists"}