Crates.io | dead-good-html-to-rsx-converter |
lib.rs | dead-good-html-to-rsx-converter |
version | 0.3.0 |
source | src |
created_at | 2023-10-28 14:57:54.559851 |
updated_at | 2023-10-29 15:39:37.295292 |
description | Convert html into rsx. |
homepage | https://github.com/PurpleBooth/dead-good-html-to-rsx-converter |
repository | https://github.com/PurpleBooth/dead-good-html-to-rsx-converter |
max_upload_size | |
id | 1016987 |
size | 26,301 |
I hate manually converting html to rsx. I hate it so much that I wrote a program to do it for me. It's not perfect, but it's better than doing it by hand.
use dead_good_html_to_rsx_converter::convert;
fn main() {
let html = r#"
<div id="hero" class="container">
<p>This is awesome!</p>
<br />
</div>
"#;
let rsx = convert(html);
println!("{}", rsx.expect("Failed to convert html to rsx"));
}