diff --git a/js/test_cases/helpers_sep/input1.json b/js/test_cases/helpers_sep/input1.json index 00940dc..f5fc911 100644 --- a/js/test_cases/helpers_sep/input1.json +++ b/js/test_cases/helpers_sep/input1.json @@ -12,5 +12,12 @@ "name": "Chris", "pet": "lizard" } - ] + ], + "toys": [ + "ball", + "bone" + ], + "scalar": 7, + "name": "global name", + "pet": "global pet" } diff --git a/js/test_cases/helpers_sep/main.dust b/js/test_cases/helpers_sep/main.dust index 7364710..d1d9415 100644 --- a/js/test_cases/helpers_sep/main.dust +++ b/js/test_cases/helpers_sep/main.dust @@ -1,3 +1,13 @@ {#people} {name}{@sep petname="fluffy"},{pet}{petname}{/sep} -{/people} +{/people}{~n} + +{#scalar} + {name}{@sep petname="fluffy"},{pet}{petname}{/sep} +{/scalar}{~n} + +{#people} + {#toys} + {name}'s pet {pet} plays with a {.}{@sep}, {/sep} + {/toys} +{/people}{~n}