dead-good-html-to-rsx-converter

Crates.iodead-good-html-to-rsx-converter
lib.rsdead-good-html-to-rsx-converter
version0.3.0
sourcesrc
created_at2023-10-28 14:57:54.559851
updated_at2023-10-29 15:39:37.295292
descriptionConvert html into rsx.
homepagehttps://github.com/PurpleBooth/dead-good-html-to-rsx-converter
repositoryhttps://github.com/PurpleBooth/dead-good-html-to-rsx-converter
max_upload_size
id1016987
size26,301
Billie Thompson (PurpleBooth)

documentation

README

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"));
}
Commit count: 19

cargo fmt