Starting a more complicated test for partials to investigate scoping.

This commit is contained in:
Tom Alexander 2020-05-08 18:19:33 -04:00
parent 7087157ed3
commit f47b91f8e7
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 40 additions and 0 deletions

View 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"
}
}
}

View File

@ -0,0 +1,3 @@
{#level1.level2}
{>partialone /}
{/level1.level2}

View File

@ -0,0 +1,3 @@
{#level3.level4}
{>partialtwo /}
{/level3.level4}

View File

@ -0,0 +1,7 @@
{#level5}
{v1}{~n}
{v2}{~n}
{v3}{~n}
{v4}{~n}
{v5}{~n}
{/level5}