wbond / pybars3

Handlebars.js template support for Python 3 and 2
GNU Lesser General Public License v3.0
179 stars 46 forks source link

Added support for @first and @last in each. #6

Closed harbulot closed 10 years ago

harbulot commented 10 years ago

This patch adds support for @first and @last when iterating with each. This is similar to issue 483 in Handlebars.js (implemented in version 1.1.0).

It is useful, for example, to write a comma-separated list without a comma after the last item.