Open borkdude opened 8 months ago
Or as a third case, have a different reader tag #html*
that propagates (with the same ^tag) to child forms?
as for
#html ^lit/html
[:div {:class "bg-red-200"} (pr-str [:em "hello"])]
we could always use vec
to build an actual js array
+1 for the opposite :-)
however the 99% use case is probably the opposite
In many cases it would be nice to not have to write the child html reader tag:
However, there might be cases where a child vector is intended as a JS runtime array and not HTML:
This may be a reason to always make child tags explicit, however the 99% use case is probably the opposite. Maybe an explicit way to opt out of propagating could also work.