I have the following arrays in my JavaScript:
let food = [
'taco',
'burrito',
'hamburger',
]
let drinks = [
'water',
'milk',
'soda',
]
I pass these to my Handlebars template and I do this:
{{#each food as |food|}}
{{food}}
{{#each drinks as |drink|}}
{{drink}}
{{/each}}
{{/each}}
But it only prints out
taco burrito hamburger
I would expect the output to be something like this (separated into newlines for legibility)
taco
water
milk
soda
burrito
water
milk
soda
hamburger
water
milk
soda
It appears to completely ignore the nested each loop. What is wrong here?