9 releases

new 0.5.6 Jul 18, 2024
0.5.1 Apr 5, 2024
0.5.0 Mar 28, 2024
0.5.0-alpha.0 Feb 23, 2024
0.3.0 Mar 24, 2023

#180 in Template engine

Download history 1039/week @ 2024-03-30 834/week @ 2024-04-06 675/week @ 2024-04-13 608/week @ 2024-04-20 654/week @ 2024-04-27 536/week @ 2024-05-04 537/week @ 2024-05-11 570/week @ 2024-05-18 583/week @ 2024-05-25 592/week @ 2024-06-01 553/week @ 2024-06-08 645/week @ 2024-06-15 514/week @ 2024-06-22 536/week @ 2024-06-29 490/week @ 2024-07-06 588/week @ 2024-07-13

2,196 downloads per month
Used in dioxus-cli

MIT/Apache

530KB
10K 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 accomodate the transition from HTML to RSX, you might need to translate some existing code.

This library provids 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
~171K SLoC