Starting a more complicated test for partials to investigate scoping.
This commit is contained in:
parent
7087157ed3
commit
f47b91f8e7
27
js/test_cases/partial_jump_around/input1.json
Normal file
27
js/test_cases/partial_jump_around/input1.json
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"level3": {
|
||||||
|
"v3": "3",
|
||||||
|
"v4": "3",
|
||||||
|
"v5": "3",
|
||||||
|
"level4": {
|
||||||
|
"v4": "4",
|
||||||
|
"v5": "4",
|
||||||
|
"level5": {
|
||||||
|
"v5": "5"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"level1": {
|
||||||
|
"v1": "1",
|
||||||
|
"v2": "1",
|
||||||
|
"v3": "1",
|
||||||
|
"v4": "1",
|
||||||
|
"v5": "1",
|
||||||
|
"level2": {
|
||||||
|
"v2": "2",
|
||||||
|
"v3": "2",
|
||||||
|
"v4": "2",
|
||||||
|
"v5": "2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
js/test_cases/partial_jump_around/main.dust
Normal file
3
js/test_cases/partial_jump_around/main.dust
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{#level1.level2}
|
||||||
|
{>partialone /}
|
||||||
|
{/level1.level2}
|
3
js/test_cases/partial_jump_around/partialone.dust
Normal file
3
js/test_cases/partial_jump_around/partialone.dust
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{#level3.level4}
|
||||||
|
{>partialtwo /}
|
||||||
|
{/level3.level4}
|
7
js/test_cases/partial_jump_around/partialtwo.dust
Normal file
7
js/test_cases/partial_jump_around/partialtwo.dust
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{#level5}
|
||||||
|
{v1}{~n}
|
||||||
|
{v2}{~n}
|
||||||
|
{v3}{~n}
|
||||||
|
{v4}{~n}
|
||||||
|
{v5}{~n}
|
||||||
|
{/level5}
|
Loading…
Reference in New Issue
Block a user