feat: rip out mutations for templates
This commit is contained in:
1 parent
3b166c9edd
commit
85657d3906
33 files changed
+270
-314
No files matched your search
@@ -62,6 +62,7 @@ impl<'a> VNode<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct Template<'a> {
|
||||
pub id: &'a str,
|
||||
@@ -71,6 +72,7 @@ pub struct Template<'a> {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
|
||||
pub enum TemplateNode<'a> {
|
||||
Element {
|
||||
tag: &'a str,
|
||||
@@ -126,11 +128,12 @@ pub struct VText<'a> {
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub enum TemplateAttribute<'a> {
|
||||
Static {
|
||||
name: &'static str,
|
||||
name: &'a str,
|
||||
value: &'a str,
|
||||
namespace: Option<&'static str>,
|
||||
namespace: Option<&'a str>,
|
||||
volatile: bool,
|
||||
},
|
||||
Dynamic(usize),
|
||||
|
||||
Reference in new issue
Block a user