chore: clean up docs with changes to templates
This commit is contained in:
1 parent
f075a519cc
commit
a252774226
18 files changed
+34
-399
No files matched your search
@@ -514,6 +514,14 @@ impl<'a> IntoTemplate<'a> for VNode<'a> {
|
||||
self
|
||||
}
|
||||
}
|
||||
impl<'a> IntoTemplate<'a> for Element<'a> {
|
||||
fn into_template(self, _cx: &'a ScopeState) -> VNode<'a> {
|
||||
match self {
|
||||
Ok(val) => val.into_template(_cx),
|
||||
_ => VNode::empty().unwrap(),
|
||||
}
|
||||
}
|
||||
}
|
||||
impl<'a, 'b> IntoTemplate<'a> for LazyNodes<'a, 'b> {
|
||||
fn into_template(self, cx: &'a ScopeState) -> VNode<'a> {
|
||||
self.call(cx)
|
||||
|
||||
Reference in new issue
Block a user