[][src]Macro sauron::declare_attributes

macro_rules! declare_attributes {
    ( $(
         $(#[$attr:meta])*
         $name:ident;
       )*
     ) => { ... };
    ( $(
         $(#[$attr:meta])*
         $name:ident => $attribute:tt;
       )*
     ) => { ... };
}

declare a function with the name corresponds to attribute name for easy usage in html elements Example:

This example is not tested
declare_attributes!{value;}

This will create a function fn value(){} which sets the attribute value to the element.