duster/js/test_cases/walk_up/main.dust

14 lines
577 B
Plaintext
Raw Normal View History

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}