Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/swanandx/html-to-rsx

Convert HTML to RSX, a meta language used by dioxus
https://github.com/swanandx/html-to-rsx

Last synced: about 2 months ago
JSON representation

Convert HTML to RSX, a meta language used by dioxus

Awesome Lists containing this project

README

        

# HTML to RSX

RSX is a meta language used by [dioxus](https://github.com/DioxusLabs/dioxus).
This is a simple utility to convert HTML to RSX to save you some time!

You can clone the repo and execute using:
```sh
cargo r --
```

Or you can pass HTML from stdin as well
```sh
cat | cargo r
```

For example,
HTML:
```html


This is awesome!





```
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