Open jquesada2016 opened 1 year ago
If not currently possible, perhaps iterators and a spread operator might be good additions to the syntax?
Attribute spreading needs to implement Iterator<Item = (impl Display, impl Display)> and could use the rust spread operator
..while classes can be spread via
. ..or something similar? Would only need to implement
Iterator
Please foregive me if this is already possible, as I did not find it in the book. But I am trying to componentize some markup, and need to support adding arbitrary attributes. So for example, let's take an
<input>
Is something like this currently possible? I understand the security implications, but this is intended to be done at compile time, by adding attributes in different parts of the app, not dynamically.