#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

#2603 in Parser implementations

Unlicense

21KB
358 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

~3.5–5MB
~101K SLoC