| Crates.io | hypertext |
| lib.rs | hypertext |
| version | 0.12.1 |
| created_at | 2024-01-12 03:35:03.277917+00 |
| updated_at | 2025-08-10 18:15:16.213885+00 |
| description | A blazing fast type-checked HTML macro crate. |
| homepage | https://github.com/vidhanio/hypertext |
| repository | https://github.com/vidhanio/hypertext |
| max_upload_size | |
| id | 1097274 |
| size | 240,278 |
hypertextA blazing fast type-checked HTML macro crate.
#![no_std] supportuse hypertext::prelude::*;
let shopping_list = ["milk", "eggs", "bread"];
let shopping_list_maud = maud! {
div {
h1 { "Shopping List" }
ul {
@for (i, item) in (1..).zip(shopping_list) {
li.item {
input #{ "item-" (i) } type="checkbox";
label for={ "item-" (i) } { (item) }
}
}
}
}
}
.render();
// or, alternatively:
let shopping_list_rsx = rsx! {
<div>
<h1>Shopping List</h1>
<ul>
@for (i, item) in (1..).zip(shopping_list) {
<li class="item">
<input id={ "item-" (i) } type="checkbox">
<label for={ "item-" (i) }>(item)</label>
</li>
}
</ul>
</div>
}
.render();
hypertextMake a pull request to list your project here!