Spacebars / handlebars html needs to be compiled. Itโs not dynamic. You need to have your html already including all the spacebars instructions in it. Please look at the guide as you donโt need to dynamically alter the DOM (HTML). Look for leveluptuts on youtube and follow his Meteor tutorials.
Ok, here it is again. Create your template HTML in advance. Not with JS.
So your HTML that you shared as an image, is fine. Generate it like this:
``
{{#each item in items}}
{{state item}}
{{/each}}
``
We typically use JS for events in this case, not for DOM manipulation.