Sha256: ab020fc144183afdeb1ccb1271157c0612e49d46da3f83264ac852508f92310c

Contents?: true

Size: 178 Bytes

Versions: 43

Compression:

Stored size: 178 Bytes

Contents

Handlebars.registerHelper 'each_with_index', (context, block) ->
  ret = ""

  for num in context
    data = context[num]
    data._index = num
    ret = ret + block(data)

  ret

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
locomotive_cms-2.0.0.rc4 app/assets/javascripts/locomotive/utils/handlebar_helpers.js.coffee
locomotive_cms-2.0.0.rc2 app/assets/javascripts/locomotive/utils/handlebar_helpers.js.coffee
locomotive_cms-2.0.0.rc1 app/assets/javascripts/locomotive/utils/handlebar_helpers.js.coffee