Access an object's property names in a Blaze template
问题 Say I have a helper that looks like this: Template.profile.helpers({ info: { Name: 'Bob Dinkleberg', Age: 45, Location: 'Earth, Milky Way' } }); I want to put this info in a <ul> . Here is some pseudo-code: <template name="profile> <ul> {{#each}} <li> {{key}}: {{property}} </li> {{/each}} </ul> </template> Forgive me if this is trivial, I am new to Meteor and Blaze, and I haven't been able to find a solution online. 回答1: This will be helpful: http://meteorcapture.com/spacebars/ You want to