Crate sauron_macro
source ·Expand description
node macro facilitates users of sauron to use html-like syntax for building view of web app components
Macros§
- Generate a skip diff list based on the node used in the view
- extract template by including only attributes and elements that is static str
- build a css string
- build css string that has media selector or any other conditional group
- Quasi-quoting macro for building sauron Nodes.
- build a style attribute
Attribute Macros§
- derive code for a certain CustomElement implementation to have the necessary types and glue code which register itself into the the DOM customElementRegistry. This also adds the register function into the module it is called in, so make sure you only use this in each module, multiple web_components should be in different modules