@budibase/handlebars-helpers
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -88,3 +88,3 @@ 'use strict'; | ||
* @api public | ||
* @example {{#eachIndex [1, 2, 3]}} {{item}} is {{index}} {{/eachIndex}} | ||
* @example {{#eachIndex [1, 2, 3]}} {{item}} is {{index}} {{/eachIndex}} -> ' 1 is 0 2 is 1 3 is 2 ' | ||
*/ | ||
@@ -119,3 +119,3 @@ | ||
* @api public | ||
* @example {{#filter [1, 2, 3] 2}}2 Found{{else}}2 not found{{/filter}} | ||
* @example {{#filter [1, 2, 3] 2}}2 Found{{else}}2 not found{{/filter}} -> 2 Found | ||
*/ | ||
@@ -208,6 +208,7 @@ | ||
* @param {Array} `array` | ||
* @param {Object} `options` | ||
* @return {String} | ||
* @block | ||
* @api public | ||
* @example {{#forEach [{ 'name': 'John' }] }} {{ name }} {{/forEach}} | ||
* @example {{#forEach [{ 'name': 'John' }] }} {{ name }} {{/forEach}} -> ' John ' | ||
*/ | ||
@@ -302,3 +303,2 @@ | ||
* @return {any} `value` | ||
* @block | ||
* @api public | ||
@@ -359,5 +359,5 @@ * @example {{itemAt [1, 2, 3] 1}} -> 2 | ||
* @param {Number} `length` | ||
* @param {Object} `options` | ||
* @return {String} | ||
* @block | ||
* @inline | ||
* @api public | ||
@@ -678,3 +678,3 @@ * @example {{equalsLength [1, 2, 3] 3}} -> true | ||
* @api public | ||
* @example {{ withAfter [1, 2, 3] 1 }} {{this}} {{/withAfter}} | ||
* @example {{#withAfter [1, 2, 3] 1 }} {{this}} {{/withAfter}} -> ' 2 3 ' | ||
*/ | ||
@@ -714,3 +714,3 @@ | ||
* @api public | ||
* @example {{ withBefore [1, 2, 3] 2 }} {{this}} {{/withBefore}} | ||
* @example {{#withBefore [1, 2, 3] 2 }} {{this}} {{/withBefore}} -> ' 1 ' | ||
*/ | ||
@@ -932,2 +932,3 @@ | ||
* @return {Array} | ||
* @block | ||
* @api public | ||
@@ -934,0 +935,0 @@ * @example {{#each (unique ['a', 'a', 'c', 'b', 'e', 'e']) }}{{.}}{{/each}} -> acbe |
@@ -27,3 +27,3 @@ 'use strict'; | ||
* @api public | ||
* @example {{#and great magnificent}}both{{else}}no{{/and}} | ||
* @example {{#and great magnificent}}both{{else}}no{{/and}} -> no | ||
*/ | ||
@@ -58,2 +58,3 @@ | ||
* @block | ||
* @inline | ||
* @api public | ||
@@ -130,3 +131,3 @@ * @example {{compare 10 '<' 5 }} -> false | ||
* @api public | ||
* @example {{#contains ['a', 'b', 'c'] 'd'}} This will not be rendered. {{else}} This will be rendered. {{/contains}} | ||
* @example {{#contains ['a', 'b', 'c'] 'd'}} This will not be rendered. {{else}} This will be rendered. {{/contains}} -> ' This will be rendered. ' | ||
*/ | ||
@@ -133,0 +134,0 @@ |
@@ -198,3 +198,3 @@ 'use strict'; | ||
* @api public | ||
* @example {{toPrecision '1.1234' 2}} | ||
* @example {{toPrecision '1.1234' 2}} -> 1.1 | ||
*/ | ||
@@ -201,0 +201,0 @@ |
@@ -793,2 +793,3 @@ 'use strict'; | ||
* @block | ||
* @inline | ||
* @api public | ||
@@ -795,0 +796,0 @@ * @example {{uppercase 'aBcDef'}} -> ABCDEF |
{ | ||
"name": "@budibase/handlebars-helpers", | ||
"description": "More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"homepage": "https://github.com/Budibase/handlebars-helpers", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
190908
4079