DioxusLabs / DioxusLabs/dioxus-html-macro

RSX parser suggestion, iteration 2

Open
#4 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
35
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Hi, original author of [syn-rsx](https://github.com/stoically/syn-rsx) had created [an issue about using generic crate](https://github.com/DioxusLabs/dioxus-html-macro/issues/1) for html parsing.

Since then, original author disappeared, and i have created a fork https://github.com/stoically/syn-rsx/issues/58
and wanted to share it with you.

In order to check if there is any interest in generalizing (ht/x)ml template parsing for rust.

Brief view shows that one feature is currently incompatible with this macro.
- string literal in place of attribute keys is not supported by [rstml](https://github.com/rs-tml/rstml). (but rstml support blocks on attribute level, and dash separated idents (like x-foo-bar) )

It also contain few improvements that could be interested:
- support unquoted text (on stable without spaces- can be used for script/jscode)
- recovery parsing - allows you to keep semantic feature (like highlight, or goto definition) when some errors in user code exist.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.