项目
在 GitHub 查看
Projects Using
vidhanio/hypertext
关于
一个速度极快且支持类型检查的 HTML 宏 crate。
网站与应用开发可以做什么
- Compile-time type checking for element names/attributes, including extensible support for custom frameworks like htmx and Alpine.js
- #![no_std] support
- Extremely fast, using lazy rendering to minimize allocation
- Integration with all major web frameworks
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文hypertext
A blazing fast type checked HTML macro crate.
Features
- Compile-time type checking for element names/attributes, including extensible support for custom frameworks like htmx and Alpine.js
#![no_std]support- Extremely fast, using lazy rendering to minimize allocation
- Integration with all major web frameworks
Example
use 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();
Projects Using hypertext
- vidhan.io (my website!)
- Lipstick on a pig -- a website for hosting volunteer-built tarballs for KISS Linux
Make a pull request to list your project here!
探索相关项目
加载中…