Skip to content

Convert HTML to RSX, a meta language used by dioxus

License

Notifications You must be signed in to change notification settings

swanandx/html-to-rsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert HTML to RSX, a meta language used by dioxus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages