dioxus/packages/rsx-rosetta
Evan Almloff 2523581cf4
Autocomplete rsx (#2421)
* autocomplete rsx

* hide the completions module

* fix autocomplete for identifiers that start with a raw identifier

* add field completion hints for props

* remove extra import

* Revert "add field completion hints for props"

This reverts commit 194899c737.

* fix autocomplete inside raw expressions

* fix autofmt

* feat: just use regular ifmt if it's compatible

reuses the tokens for ifmt so RA provides its HIR lowering on simple formatted strings

* fix merging ifmt strings

* add a better error message for components called like functions

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-05-22 07:24:50 -05:00
..
examples fix clippy 2023-01-27 20:35:46 -06:00
src Autocomplete rsx (#2421) 2024-05-22 07:24:50 -05:00
tests Fixes to autofmt, make it more aggressive (#2230) 2024-04-03 15:27:36 -07:00
Cargo.toml fix hotreloading issues in the CLI 2024-03-12 13:39:42 -07:00
README.md Fix Outdated README.md (#2147) 2024-03-26 19:17:02 -07:00

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.