handlebars-loop

1.0.3 • Public • Published

Handlebars Loop

Handlebars helper that iterates through a range of numbers.

Usage

{{#loop 0 5 1}}
<div>{{this}}</div>
{{/loop}}

Should output

<div>0</div>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>

Parameters

Argument Type Description
from Number The number to start iterating from.
to Number The number to stop iterating at.
increase Number The number to increase by per iteration

Package Sidebar

Install

npm i handlebars-loop

Weekly Downloads

6

Version

1.0.3

License

GPL-3.0

Last publish

Collaborators

  • camdagr8