Skip to content

Instantly share code, notes, and snippets.

@davidrhoden
Created October 8, 2012 19:30
Show Gist options
  • Save davidrhoden/3854420 to your computer and use it in GitHub Desktop.
Save davidrhoden/3854420 to your computer and use it in GitHub Desktop.
I want to return the index each time I loop through
var portfolio = '<% _.each(projects, function(projects, index) { %><div id="<%= projects.iimage %>" class="anImage <%= (projects.index)== 1 ? "active visible" : "hidden" %> ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment