Replies: 1 comment
|
I see why you would like this feature, but on the other side you need more code to achieve the same thing. Even GTK itself has a new language called Blueprint which is more similar to Relm4 and compiles to the "old" XML format. Instead of supporting this new syntax, I would rather consider adding integration for XML or Blueprint UI definitions. That said, I would be open to merge support for this anyway, but I don't have much time for working on the macros myself currently. |
0 replies
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'd love it if we had a template macro syntax that could convert xml-like syntax into GTK widgets (like JSX for the browser).
The tree style
view!macro by relm4 is already pretty close to that but I would love to go one step further with something like:Off topic brain dump
I ask because I have the ambition to implement react-like syntax on top of it, adding reactive state management controls, for example:
Which could unpack into:
And creating custom Widgets by embedding functions as partials/fragments rather than structs that extend base elements
All reactions