It seems paths with a leading dot restrict the scope the below the current context.
This commit is contained in:
parent
da4ef1a8c8
commit
6e8c7621f1
7
js/test_cases/dot_leading_path/input1.json
Normal file
7
js/test_cases/dot_leading_path/input1.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"commander": "Chris",
|
||||
"names": {
|
||||
"captain": "Alice",
|
||||
"first_officer": "Bob"
|
||||
}
|
||||
}
|
5
js/test_cases/dot_leading_path/main.dust
Normal file
5
js/test_cases/dot_leading_path/main.dust
Normal file
@ -0,0 +1,5 @@
|
||||
{#names}
|
||||
Hello {.captain}!{~n}
|
||||
Hello {.commander}!{~n}
|
||||
Hello {commander}!{~n}
|
||||
{/names}
|
Loading…
x
Reference in New Issue
Block a user