{{#each data}}
<div>
{{@key}} : {{this}}
</div>
{{/each}}
Heres what the data structure looks like:
data: {
maxHealth: Number,
maxMana: Number,
chanceToCrit: Number,
},
I have something set up similarly to this and it is displaying the key name and the value as I want. However, the key is displaying in camel case, such as: maxHealth, maxMana, etc.
Id like the keys to display as: max health, max mana, chance to crit, in this instance, but I wont know the key names and values ahead of time, they will be random each time. How can I use a handlebar helper to format the key for me?
Thanks for your time.