assemble/handlebars-helpers — pull request #108 by eins78 (2014-02-01 23:01:27+00:00)
Title: helpers: comparison: add `ifNth` helper

Basically a modulo, useful inside #each with @index.

Example usage: handling clearfixes in responsive bootstrap grids

```html

{{#each results}}

{{foo}}

{{#ifNth "2" @index}}

{{/ifNth}}

{{#ifNth "3" @index}}

{{/ifNth}}

{{#ifNth "4" @index}}

{{/ifNth}}

{{/each}}

```