duster/js/test_cases/idx_and_len_nested/main.dust

20 lines
762 B
Plaintext
Raw Normal View History

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}
2020-05-24 19:25:17 +00:00
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}
2020-05-24 19:25:17 +00:00
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}