Need to mix back in parameterscontext.

This commit is contained in:
Tom Alexander 2020-05-31 21:30:36 -04:00
parent bbc1a24631
commit 7bf8012d6e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -161,6 +161,19 @@ impl<'a> DustRenderer<'a> {
}
}
}
DustTag::DTSection(container) => {
//let injected_context = ParametersContext::new(breadcrumbs, &container.params);
let val = walk_path(breadcrumbs, &container.path.keys)
.map(|ice| ice.into_context_element(self, breadcrumbs));
match val {
Err(WalkError::CantWalk) => {
// TODO
}
Ok(final_val) => {
// TODO
}
}
}
_ => panic!("Unsupported tag"),
}
Ok("".to_owned())