Replies: 1 comment 1 reply
-
Yeah I mean... points 1 and 2 are subjective and I disagree, which is why I chose the syntax I did rather than something like Sycamore or Dioxus's custom template DSLs. The view macro is converted into a builder. So you could either use the builder syntax directly, or implement a macro to convert from the syntax of your choice into the builder. It's not likely that I'll personally spend any time creating a macro for an alternate syntax/custom DSL. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I understand that the JSX like view macro was chosen due to familiarity and popularity among web developers.
However, I guess you realize that JSX has many shortcomings, let me name a few of them:
<button>text</button>
vs Sycamore's syntax:button { "text" }
Given above, do you think Leptos can support a different, e.g. Sycamore style view macro? This can be switched on through a different Cargo.toml entry, different import, macro name or any other way.
Beta Was this translation helpful? Give feedback.
All reactions