duster/js/test_cases/walk_up/main.dust
Tom Alexander c3fe7b47af
Added a test for backtracking.
DustJS appears to not do any backtracking.
2020-05-03 16:49:34 -04:00

14 lines
577 B
Plaintext

Directory for {company}:{~n}
{#people}
{name}: {job} at {company} (email: {globals.email}){~n}
Testing walking after entering a parent context {#globals}job: {job}, email: {email}, company: {company}{/globals}{~n}
{/people}
Doing a deep walk to see if intermediate steps are added to the dynamic context.{~n}
{#deep_people}
{#deep_globals.things}
{name} has a {color} {item} which is {deeper_item.style} and made out of {deeper_item.material}
{/deep_globals.things}
but everyone shares one that is {deeper_item.style} and made out of {deeper_item.material}{~n}
{/deep_people}