feat: simple iterators and conditionals in rsx (#564)
* feat: simple iterators * fix: into_iter * feat: add support for unterminated conditionasl * fix: add tempalte mapping for helpers
This commit is contained in:
1 parent
0085b9cb1d
commit
8ea61e1b3e
3 files changed
+153
-2
No files matched your search
@@ -557,6 +557,22 @@ impl TemplateBuilder {
|
||||
fully_static: false,
|
||||
});
|
||||
}
|
||||
BodyNode::ForLoop(expr) => {
|
||||
self.nodes.push(TemplateNodeBuilder {
|
||||
id,
|
||||
node_type: TemplateNodeTypeBuilder::DynamicNode(
|
||||
self.dynamic_context.add_node(BodyNode::ForLoop(expr)),
|
||||
),
|
||||
});
|
||||
}
|
||||
BodyNode::IfChain(expr) => {
|
||||
self.nodes.push(TemplateNodeBuilder {
|
||||
id,
|
||||
node_type: TemplateNodeTypeBuilder::DynamicNode(
|
||||
self.dynamic_context.add_node(BodyNode::IfChain(expr)),
|
||||
),
|
||||
});
|
||||
}
|
||||
}
|
||||
id
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user