wycats/handlebars.js — pull request #615 by denniskuczynski (2013-09-21 19:55:04+00:00)
Title: Add @first and @last data variables to #each helper

This is a pull request for adding @first and @last data variables to the #each helper. The implementation is as described in issue #483 along with basic tests .

@first returns true during the first element of the array, otherwise false.
@last returns true during the last element of the array, otherwise false.

Let me know if you have any feedback,
Thanks,
Dennis