duster/js/test_cases/idx_and_len_nested/main.dust
2020-05-24 15:25:17 -04:00

20 lines
762 B
Plaintext

Outside $idx: {$idx}{~n}
Outside $len: {$len}{~n}
Outside {?$idx}$idx is true{:else}$idx is false{/$idx}{~n}
Outside {?$len}$len is true{:else}$len is false{/$len}{~n}
{#things}
Inside Section $idx: {$idx}{~n}
Inside Section $len: {$len}{~n}
Inside Section .$idx: {.$idx}{~n}
Inside Section {?$idx}$idx is true{:else}$idx is false{/$idx}{~n}
Inside Section {?$len}$len is true{:else}$len is false{/$len}{~n}
{#.}
Inside Nested Section $idx: {$idx}{~n}
Inside Nested Section $len: {$len}{~n}
Inside Nested Section .$idx: {.$idx}{~n}
Inside Nested Section {?$idx}$idx is true{:else}$idx is false{/$idx}{~n}
Inside Nested Section {?$len}$len is true{:else}$len is false{/$len}{~n}
{/.}
{/things}