Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 738 Bytes

README.md

File metadata and controls

36 lines (30 loc) · 738 Bytes

HTML to RSX

RSX is a meta language used by dioxus. This is a simple utility to convert HTML to RSX to save you some time!

You can clone the repo and execute using:

cargo r -- <PATH TO HTML FILE>

Or you can pass HTML from stdin as well

cat <HTML FILE> | cargo r

For example, HTML:

<div id="hero" class="container">
  <p>This is awesome!</p>
  <br />
</div>

RSX:

div { 
    id: "hero",
    class: "container",
    p { "This is awesome!"}
    br { }
}

We are curretly bare bone and WIP, lot of work needs to be done. e.g. formatting the RSX, having r#type instead of type for input, etc.

Feel free to open issues/ PR and contribute to the project <3