Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/swanandx/html-to-rsx
- Owner: swanandx
- License: mit
- Created: 2023-06-11T16:41:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-11T17:22:28.000Z (over 1 year ago)
- Last Synced: 2024-10-11T14:13:20.807Z (2 months ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust-list - swanandx/html-to-rsx - to-rsx?style=social"/> : Convert HTML to RSX, a meta language used by dioxus. (GUI)
- awesome-rust-list - swanandx/html-to-rsx - to-rsx?style=social"/> : Convert HTML to RSX, a meta language used by dioxus. (GUI)
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