{{#each data}}
<div>
{{@key}} : {{this}}
</div>
{{/each}}
Here's a glimpse at the structure of the data:
data: {
maxHealth: Number,
maxMana: Number,
chanceToCrit: Number,
},
I currently have a setup similar to this, showing the key name and its value as intended. However, the keys are displayed in camel case format like: maxHealth, maxMana, etc.
I am interested in having the keys displayed as: max health, max mana, chance to crit, for instance. The challenge is that I cannot predict the key names and values ahead of time since they will vary each time. How can I apply a handlebar helper to format the keys accordingly?
Appreciate your assistance.