handlebars-plugin-grouping
A handlebars grouping iterator plugin to group collections into groups of definable size.
Template Usage
An example template to render a collection of thumbnails into a bootstrap grid row of 6 thumbnails per row.
{{#grouping thumbnails 6}} {{#each this}} {{/each}} {{/grouping}}
Node.js
Installation:
npm install handlebars-plugin-grouping --save
Example:
var grouping = ;var exphbs = ; var hbs = exphbs;
Browser
Load the script after the handlebars runtime.