This is a complete rewrite of proc macros that allows for element hoisting within a single html! { ... } invocation. This finally allows a full support for classList support and attributes that need to be modified on element directly rather than via remote AttributeNode. In particular for now this enables:
The <tag .my-class.{variable_class1}.{variable_class2}> syntax for working with classLists.
checked attribute on <input> elements will now properly set the boolean value.
In addition kobold_macros no longer depends on quote or proc_macro2, and the whole codebase is much more maintainable.
This is a complete rewrite of proc macros that allows for element hoisting within a single
html! { ... }
invocation. This finally allows a full support forclassList
support and attributes that need to be modified on element directly rather than via remoteAttributeNode
. In particular for now this enables:<tag .my-class.{variable_class1}.{variable_class2}>
syntax for working withclassList
s.checked
attribute on<input>
elements will now properly set the boolean value.In addition
kobold_macros
no longer depends onquote
orproc_macro2
, and the whole codebase is much more maintainable.