{"id":19564480,"url":"https://github.com/dioxuslabs/dioxus-html-macro","last_synced_at":"2025-09-21T17:22:43.638Z","repository":{"id":42697613,"uuid":"510925849","full_name":"DioxusLabs/dioxus-html-macro","owner":"DioxusLabs","description":"An html macro for dioxus applications.","archived":false,"fork":false,"pushed_at":"2024-10-07T12:23:42.000Z","size":103,"stargazers_count":28,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T15:08:51.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DioxusLabs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-05T23:41:13.000Z","updated_at":"2025-02-13T15:49:08.000Z","dependencies_parsed_at":"2024-01-16T06:18:36.180Z","dependency_job_id":"63873bc3-b98e-4f6b-8b5e-5eeef432b69f","html_url":"https://github.com/DioxusLabs/dioxus-html-macro","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.045454545454545414","last_synced_commit":"c13df7312ba379b59045f179aabb6d21c784e341"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DioxusLabs%2Fdioxus-html-macro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DioxusLabs%2Fdioxus-html-macro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DioxusLabs%2Fdioxus-html-macro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DioxusLabs%2Fdioxus-html-macro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DioxusLabs","download_url":"https://codeload.github.com/DioxusLabs/dioxus-html-macro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075973,"owners_count":21043681,"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":[],"created_at":"2024-11-11T05:22:12.548Z","updated_at":"2025-09-21T17:22:38.597Z","avatar_url":"https://github.com/DioxusLabs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# dioxus html macro\nThis crate offers an `html!` like macro for \ndioxus applications. It expands to the equivalent `rsx!` macro\ncall you would have made otherwise, so it does not rely on any \ndioxus' internals. \n```rust\nuse dioxus::prelude::*; \nuse dioxus_html_macro::html; \n\nfn app(cx: Scope) -\u003e Element {\n    let mut count = use_state(\u0026cx, || 0);\n    cx.render(html!(\n        \u003ch1\u003e\"High-Five counter: {count}\"\u003c/h1\u003e\n        \u003cbutton onclick={move |_| count += 1}\u003e\"Up high!\"\u003c/button\u003e\n        \u003cbutton onclick={move |_| count -= 1}\u003e\"Down low!\"\u003c/button\u003e\n    ))\n}\n```\nNote that unlike HTML and JSX, styling of html tags is done via \nattributes: \n```rust\nhtml!(\n    \u003ch1 color=\"red\"\u003e\"High-Five counter: {count}\"\u003c/h1\u003e\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdioxuslabs%2Fdioxus-html-macro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdioxuslabs%2Fdioxus-html-macro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdioxuslabs%2Fdioxus-html-macro/lists"}