#rsx #html #convert-html #dioxus

dead-good-html-to-rsx-converter

Convert html into rsx

4 releases (2 breaking)

0.3.0 Oct 29, 2023
0.2.0 Oct 28, 2023
0.1.1 Oct 28, 2023
0.1.0 Oct 28, 2023

#17 in #rsx

28 downloads per month

Unlicense

22KB
378 lines

A Dead Good Html To Rsx Converter

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.

Usage

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"));
}

lib.rs:

Convert html into rsx

Dependencies

~4–10MB
~114K SLoC