5 releases

new 0.6.0 Dec 7, 2024
0.6.0-rc.0 Dec 3, 2024
0.6.0-alpha.5 Nov 16, 2024
0.6.0-alpha.4 Nov 1, 2024
0.6.0-alpha.3 Oct 14, 2024

#280 in Procedural macros

Download history 207/week @ 2024-10-12 71/week @ 2024-10-19 81/week @ 2024-10-26 260/week @ 2024-11-02 38/week @ 2024-11-09 248/week @ 2024-11-16 73/week @ 2024-11-23 266/week @ 2024-11-30

655 downloads per month
Used in dioxus-cli

MIT/Apache

590KB
11K SLoC

rsx-rosetta

Crates.io MIT licensed Build Status Discord chat

Website | Guides | API Docs | Chat

Overview

Dioxus sports its own templating language inspired by C#/Kotlin/RTMP, etc. It's pretty straightforward.

However, it's NOT HTML. This is done since HTML is verbose and you'd need a dedicated LSP or IDE integration to get a good DX in .rs files.

RSX is simple... It's similar enough to regular Rust code to trick most IDEs into automatically providing support for things like block selections, folding, highlighting, etc.

To accommodate the transition from HTML to RSX, you might need to translate some existing code.

This library provides a central AST that can accept a number of inputs:

  • HTML
  • Syn (todo)
  • Akama (todo)
  • Jinja (todo)

From there, you can convert directly to a string or into some other AST.

Contributing

  • Report issues on our issue tracker.
  • Join the discord and ask questions!

License

This project is licensed under the MIT license.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you, shall be licensed as MIT, without any additional terms or conditions.

Dependencies

~7–14MB
~174K SLoC