dustjs-helper-repeat

0.0.2 • Public • Published

repeat helper

Simple repeat helper for dust.js

Definition

{@repeat times=5 start=1 }
{$key}. Body
{/repeat}


Examples

{@repeat times=14 }Na{/repeat}... Batman

Usage

Depends on dustjs-helpers module to be loaded first since it adds it's definition to the the dust.helpers property.

In node.js:

require('dustjs-helper-repeat');

In browser:

If not using require, load the JS some other way and call it with the dust object. As noted earlier, dustjs-helpers must be loaded earlier.

/dustjs-helper-repeat/

    Package Sidebar

    Install

    npm i dustjs-helper-repeat

    Weekly Downloads

    8

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • framp