feat: namespaced attributes
this commit adds namespaced attributes. This lets us support attribute groups, and thus, inline styles. This namespaced attribute stuff is only available for styles at the moment, though it theoretically could be enabled for any other attributes.
This commit is contained in:
1 parent
a4bf3d9862
commit
22e659c2bd
18 files changed
+612
-3129
No files matched your search
@@ -216,6 +216,11 @@ pub struct VElement<'a> {
|
||||
pub struct Attribute<'a> {
|
||||
pub name: &'static str,
|
||||
pub value: &'a str,
|
||||
|
||||
/// If an attribute is "namespaced", then it belongs to a group
|
||||
/// The most common namespace is the "style" namespace
|
||||
// pub is_dynamic: bool,
|
||||
pub namespace: Option<&'static str>,
|
||||
}
|
||||
|
||||
impl<'a> Attribute<'a> {
|
||||
|
||||
Reference in new issue
Block a user