Replies: 2 comments 1 reply
-
One problem with HTML literals is nesting of sequences, e.g. ul + li. Another approach is to just use functions as in Van.js: |
Beta Was this translation helpful? Give feedback.
1 reply
-
It would also be nice to parse classes and ids out of the keyword (like hiccupish libraries do) [:div#id.class-1.class-2] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Experiment in html branch. Works with this input in playground:
It could get annoying to have to write
#html ^lit/html [....]
.If users could write a macro to get rid of that boilerplate, e.g.
(lit [:Ul ..])
this would be nice.But then
#html
likely also has to be a macro instead of a reader tag (which is technically not impossible).Beta Was this translation helpful? Give feedback.
All reactions