-
-
Notifications
You must be signed in to change notification settings - Fork 328
-
Did you seen the niceGUI project ? They use a very clever syntax to create the DOM syntax.
Instead of using this syntax :
html.div( html.h1("My Todo List"), html.ul( html.li("Design a cool new app"), html.li("Build it"), html.li("Share it with the world!"), ) )
why not using this one ! Easier to write and read
with html.div(): html.h1("My Todo List") with html.ul(): html.li("Design a cool new app") html.li("Built it") html.lit("Share it with the word!")
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments
-
This was debated a little bit here: #916 (comment)
Technically you could create your own utility that implements this interface.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
-
With the release of ReactPy v2 rapidly approaching, I've created a new ticket about this #1279.
Hopefully we can get some users that voice their opinion on which interface feels better to use.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment