Crates.io | html-macro |
lib.rs | html-macro |
version | 0.2.5 |
source | src |
created_at | 2019-01-27 15:24:02.364381 |
updated_at | 2024-06-03 18:30:47.208775 |
description | html macro |
homepage | |
repository | https://github.com/chinedufn/percy |
max_upload_size | |
id | 110936 |
size | 52,830 |
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);
}