Sounds like you’re on the right path.
I can never remember and Google “handlebars for loop” and find examples.