23个版本
0.2.5 | 2024年6月3日 |
---|---|
0.2.2 | 2023年2月20日 |
0.2.1 | 2021年11月8日 |
0.1.14 | 2021年7月28日 |
0.1.4 | 2019年3月16日 |
728 在 过程宏 中排名
每月226次下载
在 5 个crate中(3个直接使用) 使用
62KB
1K SLoC
html-macro
use html_macro::*;
fn main () {
let component = html! { <div id='component'>Some component</div> };
let text_var = "You can interpolate text variables";
let html = html! {
<div onclick=|_ev: web_sys::MouseEvent| {}>
You can type text right into the elements
{ component }
{ text_var }
</div>
};
println!("{}", node);
}
依赖项
~270–720KB
~17K SLoC