Macro sauron_core::declare_attributes
source · macro_rules! declare_attributes { ( $( $(#[$attr:meta])* $name:ident; )* ) => { ... }; ( $( $(#[$attr:meta])* $name:ident => $attribute:tt; )* ) => { ... }; }
Expand description
declare a function with the name corresponds to attribute name for easy usage in html elements Example:
ⓘ
declare_attributes!{value;}
This will create a function fn value(){}
which sets the attribute value
to the element.