Due to traits I am going to have to start hard-replacing the old renderer file.
This commit is contained in:
parent
de5914417e
commit
1111b48270
@ -7,6 +7,7 @@ use crate::renderer::breadcrumb_tree::BreadcrumbTreeNodeElement;
|
||||
use crate::renderer::context_element::ContextElement;
|
||||
use crate::renderer::context_element::IntoContextElement;
|
||||
use crate::renderer::errors::CompileError;
|
||||
use crate::renderer::tree_walking::walk_path;
|
||||
use std::collections::HashMap;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
@ -85,8 +86,18 @@ impl<'a> DustRenderer<'a> {
|
||||
};
|
||||
let mut new_nodes = Vec::new();
|
||||
|
||||
// TODO: Explicit context
|
||||
|
||||
explicit_context.as_ref().map(|path| {
|
||||
let x = walk_path(maybe_breadcrumbs, &path.keys);
|
||||
x.map(|ice| ice.into_context_element(self, breadcrumbs))
|
||||
.map(|val| if val.is_truthy() {});
|
||||
// walk_path(breadcrumbs, &path.keys)
|
||||
// .map(|ice| ice.into_context_element(self, breadcrumbs))
|
||||
// .map(|val| {
|
||||
// if val.is_truthy() {
|
||||
// new_stack.push(val.from_context_element())
|
||||
// }
|
||||
// });
|
||||
});
|
||||
injected_context.map(|ctx| new_nodes.push(BreadcrumbTreeNodeElement::Borrowed(ctx)));
|
||||
new_context_element.map(|ctx| {
|
||||
new_nodes.push(BreadcrumbTreeNodeElement::Borrowed(
|
||||
|
Loading…
x
Reference in New Issue
Block a user