Improve the walk up test to prove that DustJS is doing dynamic scoping, not lexical scoping.

This commit is contained in:
Tom Alexander
2020-05-03 16:13:29 -04:00
parent 9adb88d132
commit 45facfed0d
4 changed files with 36 additions and 1 deletions

View File

@@ -181,6 +181,7 @@ impl<'a> DustRenderer<'a> {
fn walk_path<'a>(
context: &'a dyn ContextElement,
path: &Vec<&str>,
breadcrumbs: Vec<&'a dyn ContextElement>,
) -> Result<&'a dyn ContextElement, RenderError<'a>> {
let mut output = context;