Created
August 6, 2013 05:01
-
-
Save nanusdad/6162141 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When looping through items in each, you can optionally reference the current loop index via {{@index}} | |
{{#each array}} | |
{{@index}}: {{this}} | |
{{/each}} | |
For object iteration, use {{@key}} instead: | |
{{#each object}} | |
{{@key}}: {{this}} | |
{{/each}} | |
From: http://handlebarsjs.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment