{ "math": { "abs": { "args": [ "a" ], "numArgs": 1, "description": "

Return the magnitude of a.

\n" }, "add": { "args": [ "a", "b" ], "numArgs": 2, "description": "

Return the sum of a plus b.

\n" }, "avg": { "args": [ "array" ], "numArgs": 1, "description": "

Returns the average of all numbers in the given array.

\n" }, "ceil": { "args": [ "value" ], "numArgs": 1, "description": "

Get the Math.ceil() of the given value.

\n" }, "divide": { "args": [ "a", "b" ], "numArgs": 2, "description": "

Divide a by b

\n" }, "floor": { "args": [ "value" ], "numArgs": 1, "description": "

Get the Math.floor() of the given value.

\n" }, "minus": { "args": [ "a", "b" ], "numArgs": 2, "description": "

Return the product of a minus b.

\n" }, "modulo": { "args": [ "a", "b" ], "numArgs": 2, "description": "

Get the remainder of a division operation.

\n" }, "multiply": { "args": [ "a", "b" ], "numArgs": 2, "description": "

Return the product of a times b.

\n" }, "plus": { "args": [ "a", "b" ], "numArgs": 2, "description": "

Add a by b.

\n" }, "random": { "args": [ "min", "max" ], "numArgs": 2, "description": "

Generate a random number between two values

\n" }, "remainder": { "args": [ "a", "b" ], "numArgs": 2, "description": "

Get the remainder when a is divided by b.

\n" }, "round": { "args": [ "number" ], "numArgs": 1, "description": "

Round the given number.

\n" }, "subtract": { "args": [ "a", "b" ], "numArgs": 2, "description": "

Return the product of a minus b.

\n" }, "sum": { "args": [ "array" ], "numArgs": 1, "description": "

Returns the sum of all numbers in the given array.

\n" }, "times": { "args": [ "a", "b" ], "numArgs": 2, "description": "

Multiply number a by number b.

\n" } }, "array": { "after": { "args": [ "array", "n" ], "numArgs": 2, "description": "

Returns all of the items in an array after the specified index. Opposite of before.

\n" }, "arrayify": { "args": [ "value" ], "numArgs": 1, "description": "

Cast the given value to an array.

\n" }, "before": { "args": [ "array", "n" ], "numArgs": 2, "description": "

Return all of the items in the collection before the specified count. Opposite of after.

\n" }, "eachIndex": { "args": [ "array", "options" ], "numArgs": 2, "description": "

Iterates the array, listing an item and the index of it.

\n" }, "filter": { "args": [ "array", "value", "options" ], "numArgs": 3, "description": "

Block helper that filters the given array and renders the block for values that evaluate to true, otherwise the inverse block is returned.

\n" }, "first": { "args": [ "array", "n" ], "numArgs": 2, "description": "

Returns the first item, or first n items of an array.

\n" }, "forEach": { "args": [ "array" ], "numArgs": 1, "description": "

Iterates over each item in an array and exposes the current item in the array as context to the inner block. In addition to the current array item, the helper exposes the following variables to the inner block: - index - total - isFirst - isLast Also, @index is exposed as a private variable, and additional private variables may be defined as hash arguments.

\n" }, "inArray": { "args": [ "array", "value", "options" ], "numArgs": 3, "description": "

Block helper that renders the block if an array has the given value. Optionally specify an inverse block to render when the array does not have the given value.

\n" }, "isArray": { "args": [ "value" ], "numArgs": 1, "description": "

Returns true if value is an es5 array.

\n" }, "itemAt": { "args": [ "array", "idx" ], "numArgs": 2, "description": "

Returns the item from array at index idx.

\n" }, "join": { "args": [ "array", "separator" ], "numArgs": 2, "description": "

Join all elements of array into a string, optionally using a given separator.

\n" }, "equalsLength": { "args": [ "value", "length", "options" ], "numArgs": 3, "description": "

Returns true if the the length of the given value is equal to the given length. Can be used as a block or inline helper.

\n" }, "last": { "args": [ "value", "n" ], "numArgs": 2, "description": "

Returns the last item, or last n items of an array or string. Opposite of first.

\n" }, "length": { "args": [ "value" ], "numArgs": 1, "description": "

Returns the length of the given string or array.

\n" }, "lengthEqual": { "args": [ "value", "length", "options" ], "numArgs": 3, "description": "

Returns true if the the length of the given value is equal to the given length. Can be used as a block or inline helper.

\n" }, "map": { "args": [ "array", "fn" ], "numArgs": 2, "description": "

Returns a new array, created by calling function on each element of the given array. For example,

\n" }, "pluck": { "args": [ "collection", "prop" ], "numArgs": 2, "description": "

Map over the given object or array or objects and create an array of values from the given prop. Dot-notation may be used (as a string) to get nested properties.

\n" }, "reverse": { "args": [ "value" ], "numArgs": 1, "description": "

Reverse the elements in an array, or the characters in a string.

\n" }, "some": { "args": [ "array", "iter", "provided" ], "numArgs": 3, "description": "

Block helper that returns the block if the callback returns true for some value in the given array.

\n" }, "sort": { "args": [ "array", "key" ], "numArgs": 2, "description": "

Sort the given array. If an array of objects is passed, you may optionally pass a key to sort on as the second argument. You may alternatively pass a sorting function as the second argument.

\n" }, "sortBy": { "args": [ "array", "props" ], "numArgs": 2, "description": "

Sort an array. If an array of objects is passed, you may optionally pass a key to sort on as the second argument. You may alternatively pass a sorting function as the second argument.

\n" }, "withAfter": { "args": [ "array", "idx", "options" ], "numArgs": 3, "description": "

Use the items in the array after the specified index as context inside a block. Opposite of withBefore.

\n" }, "withBefore": { "args": [ "array", "idx", "options" ], "numArgs": 3, "description": "

Use the items in the array before the specified index as context inside a block. Opposite of withAfter.

\n" }, "withFirst": { "args": [ "array", "idx", "options" ], "numArgs": 3, "description": "

Use the first item in a collection inside a handlebars block expression. Opposite of withLast.

\n" }, "withGroup": { "args": [ "array", "size", "options" ], "numArgs": 3, "description": "

Block helper that groups array elements by given group size.

\n" }, "withLast": { "args": [ "array", "idx", "options" ], "numArgs": 3, "description": "

Use the last item or n items in an array as context inside a block. Opposite of withFirst.

\n" }, "withSort": { "args": [ "array", "prop", "options" ], "numArgs": 3, "description": "

Block helper that sorts a collection and exposes the sorted collection as context inside the block.

\n" }, "unique": { "args": [ "array", "options" ], "numArgs": 2, "description": "

Block helper that return an array with all duplicate values removed. Best used along with a each helper.

\n" } }, "number": { "bytes": { "args": [ "number" ], "numArgs": 1, "description": "

Format a number to it's equivalent in bytes. If a string is passed, it's length will be formatted and returned. Examples: - 'foo' => 3 B - 13661855 => 13.66 MB - 825399 => 825.39 kB - 1396 => 1.4 kB

\n" }, "addCommas": { "args": [ "num" ], "numArgs": 1, "description": "

Add commas to numbers

\n" }, "phoneNumber": { "args": [ "num" ], "numArgs": 1, "description": "

Convert a string or number to a formatted phone number.

\n" }, "toAbbr": { "args": [ "number", "precision" ], "numArgs": 2, "description": "

Abbreviate numbers to the given number of precision. This for general numbers, not size in bytes.

\n" }, "toExponential": { "args": [ "number", "fractionDigits" ], "numArgs": 2, "description": "

Returns a string representing the given number in exponential notation.

\n" }, "toFixed": { "args": [ "number", "digits" ], "numArgs": 2, "description": "

Formats the given number using fixed-point notation.

\n" }, "toFloat": { "args": [ "number" ], "numArgs": 1, "description": "

Convert input to a float.

\n" }, "toInt": { "args": [ "number" ], "numArgs": 1, "description": "

Convert input to an integer.

\n" }, "toPrecision": { "args": [ "number", "precision" ], "numArgs": 2, "description": "

Returns a string representing the Number object to the specified precision.

\n" } }, "url": { "encodeURI": { "args": [ "str" ], "numArgs": 1, "description": "

Encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character.

\n" }, "escape": { "args": [ "str" ], "numArgs": 1, "description": "

Escape the given string by replacing characters with escape sequences. Useful for allowing the string to be used in a URL, etc.

\n" }, "decodeURI": { "args": [ "str" ], "numArgs": 1, "description": "

Decode a Uniform Resource Identifier (URI) component.

\n" }, "url_encode": { "args": [], "numArgs": 0, "description": "

Alias for encodeURI.

\n" }, "url_decode": { "args": [], "numArgs": 0, "description": "

Alias for decodeURI.

\n" }, "urlResolve": { "args": [ "base", "href" ], "numArgs": 2, "description": "

Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag.

\n" }, "urlParse": { "args": [ "str" ], "numArgs": 1, "description": "

Parses a url string into an object.

\n" }, "stripQuerystring": { "args": [ "url" ], "numArgs": 1, "description": "

Strip the query string from the given url.

\n" }, "stripProtocol": { "args": [ "str" ], "numArgs": 1, "description": "

Strip protocol from a url. Useful for displaying media that may have an 'http' protocol on secure connections.

\n" } }, "string": { "append": { "args": [ "str", "suffix" ], "numArgs": 2, "description": "

Append the specified suffix to the given string.

\n" }, "camelcase": { "args": [ "string" ], "numArgs": 1, "description": "

camelCase the characters in the given string.

\n" }, "capitalize": { "args": [ "str" ], "numArgs": 1, "description": "

Capitalize the first word in a sentence.

\n" }, "capitalizeAll": { "args": [ "str" ], "numArgs": 1, "description": "

Capitalize all words in a string.

\n" }, "center": { "args": [ "str", "spaces" ], "numArgs": 2, "description": "

Center a string using non-breaking spaces

\n" }, "chop": { "args": [ "string" ], "numArgs": 1, "description": "

Like trim, but removes both extraneous whitespace and non-word characters from the beginning and end of a string.

\n" }, "dashcase": { "args": [ "string" ], "numArgs": 1, "description": "

dash-case the characters in string. Replaces non-word characters and periods with hyphens.

\n" }, "dotcase": { "args": [ "string" ], "numArgs": 1, "description": "

dot.case the characters in string.

\n" }, "downcase": { "args": [ "string" ], "numArgs": 1, "description": "

Lowercase all of the characters in the given string. Alias for lowercase.

\n" }, "ellipsis": { "args": [ "str", "length" ], "numArgs": 2, "description": "

Truncates a string to the specified length, and appends it with an elipsis, .

\n" }, "hyphenate": { "args": [ "str" ], "numArgs": 1, "description": "

Replace spaces in a string with hyphens.

\n" }, "isString": { "args": [ "value" ], "numArgs": 1, "description": "

Return true if value is a string.

\n" }, "lowercase": { "args": [ "str" ], "numArgs": 1, "description": "

Lowercase all characters in the given string.

\n" }, "occurrences": { "args": [ "str", "substring" ], "numArgs": 2, "description": "

Return the number of occurrences of substring within the given string.

\n" }, "pascalcase": { "args": [ "string" ], "numArgs": 1, "description": "

PascalCase the characters in string.

\n" }, "pathcase": { "args": [ "string" ], "numArgs": 1, "description": "

path/case the characters in string.

\n" }, "plusify": { "args": [ "str" ], "numArgs": 1, "description": "

Replace spaces in the given string with pluses.

\n" }, "prepend": { "args": [ "str", "prefix" ], "numArgs": 2, "description": "

Prepends the given string with the specified prefix.

\n" }, "raw": { "args": [ "options" ], "numArgs": 1, "description": "

Render a block without processing mustache templates inside the block.

\n" }, "remove": { "args": [ "str", "substring" ], "numArgs": 2, "description": "

Remove all occurrences of substring from the given str.

\n" }, "removeFirst": { "args": [ "str", "substring" ], "numArgs": 2, "description": "

Remove the first occurrence of substring from the given str.

\n" }, "replace": { "args": [ "str", "a", "b" ], "numArgs": 3, "description": "

Replace all occurrences of substring a with substring b.

\n" }, "replaceFirst": { "args": [ "str", "a", "b" ], "numArgs": 3, "description": "

Replace the first occurrence of substring a with substring b.

\n" }, "sentence": { "args": [ "str" ], "numArgs": 1, "description": "

Sentence case the given string

\n" }, "snakecase": { "args": [ "string" ], "numArgs": 1, "description": "

snake_case the characters in the given string.

\n" }, "split": { "args": [ "string" ], "numArgs": 1, "description": "

Split string by the given character.

\n" }, "startsWith": { "args": [ "prefix", "testString", "options" ], "numArgs": 3, "description": "

Tests whether a string begins with the given prefix.

\n" }, "titleize": { "args": [ "str" ], "numArgs": 1, "description": "

Title case the given string.

\n" }, "trim": { "args": [ "string" ], "numArgs": 1, "description": "

Removes extraneous whitespace from the beginning and end of a string.

\n" }, "trimLeft": { "args": [ "string" ], "numArgs": 1, "description": "

Removes extraneous whitespace from the beginning of a string.

\n" }, "trimRight": { "args": [ "string" ], "numArgs": 1, "description": "

Removes extraneous whitespace from the end of a string.

\n" }, "truncate": { "args": [ "str", "limit", "suffix" ], "numArgs": 3, "description": "

Truncate a string to the specified length. Also see ellipsis.

\n" }, "truncateWords": { "args": [ "str", "limit", "suffix" ], "numArgs": 3, "description": "

Truncate a string to have the specified number of words. Also see truncate.

\n" }, "upcase": { "args": [ "string" ], "numArgs": 1, "description": "

Uppercase all of the characters in the given string. Alias for uppercase.

\n" }, "uppercase": { "args": [ "str", "options" ], "numArgs": 2, "description": "

Uppercase all of the characters in the given string. If used as a block helper it will uppercase the entire block. This helper does not support inverse blocks.

\n" } }, "comparison": { "and": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Helper that renders the block if both of the given values are truthy. If an inverse block is specified it will be rendered when falsy. Works as a block helper, inline helper or subexpression.

\n" }, "compare": { "args": [ "a", "operator", "b", "options" ], "numArgs": 4, "description": "

Render a block when a comparison of the first and third arguments returns true. The second argument is the [arithemetic operator][operators] to use. You may also optionally specify an inverse block to render when falsy.

\n" }, "contains": { "args": [ "collection", "value", "[startIndex=0]", "options" ], "numArgs": 4, "description": "

Block helper that renders the block if collection has the given value, using strict equality (===) for comparison, otherwise the inverse block is rendered (if specified). If a startIndex is specified and is negative, it is used as the offset from the end of the collection.

\n" }, "default": { "args": [ "value", "defaultValue" ], "numArgs": 2, "description": "

Returns the first value that is not undefined, otherwise the "default" value is returned.

\n" }, "eq": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that renders a block if a is equal to b. If an inverse block is specified it will be rendered when falsy. You may optionally use the compare="" hash argument for the second value.

\n" }, "gt": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that renders a block if a is greater than b. If an inverse block is specified it will be rendered when falsy. You may optionally use the compare="" hash argument for the second value.

\n" }, "gte": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that renders a block if a is greater than or equal to b. If an inverse block is specified it will be rendered when falsy. You may optionally use the compare="" hash argument for the second value.

\n" }, "has": { "args": [ "val", "pattern", "options" ], "numArgs": 3, "description": "

Block helper that renders a block if value has pattern. If an inverse block is specified it will be rendered when falsy.

\n" }, "isFalsey": { "args": [ "val", "options" ], "numArgs": 2, "description": "

Returns true if the given value is falsey. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.

\n" }, "isTruthy": { "args": [ "val", "options" ], "numArgs": 2, "description": "

Returns true if the given value is truthy. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.

\n" }, "ifEven": { "args": [ "number", "options" ], "numArgs": 2, "description": "

Return true if the given value is an even number.

\n" }, "ifNth": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Conditionally renders a block if the remainder is zero when a operand is divided by b. If an inverse block is specified it will be rendered when the remainder is not zero.

\n" }, "ifOdd": { "args": [ "value", "options" ], "numArgs": 2, "description": "

Block helper that renders a block if value is an odd number. If an inverse block is specified it will be rendered when falsy.

\n" }, "is": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that renders a block if a is equal to b. If an inverse block is specified it will be rendered when falsy. Similar to eq but does not do strict equality.

\n" }, "isnt": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that renders a block if a is not equal to b. If an inverse block is specified it will be rendered when falsy. Similar to unlessEq but does not use strict equality for comparisons.

\n" }, "lt": { "args": [ "context", "options" ], "numArgs": 2, "description": "

Block helper that renders a block if a is less than b. If an inverse block is specified it will be rendered when falsy. You may optionally use the compare="" hash argument for the second value.

\n" }, "lte": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that renders a block if a is less than or equal to b. If an inverse block is specified it will be rendered when falsy. You may optionally use the compare="" hash argument for the second value.

\n" }, "neither": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that renders a block if neither of the given values are truthy. If an inverse block is specified it will be rendered when falsy.

\n" }, "not": { "args": [ "val", "options" ], "numArgs": 2, "description": "

Returns true if val is falsey. Works as a block or inline helper.

\n" }, "or": { "args": [ "arguments", "options" ], "numArgs": 2, "description": "

Block helper that renders a block if any of the given values is truthy. If an inverse block is specified it will be rendered when falsy.

\n" }, "unlessEq": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that always renders the inverse block unless a is equal to b.

\n" }, "unlessGt": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that always renders the inverse block unless a is greater than b.

\n" }, "unlessLt": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that always renders the inverse block unless a is less than b.

\n" }, "unlessGteq": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that always renders the inverse block unless a is greater than or equal to b.

\n" }, "unlessLteq": { "args": [ "a", "b", "options" ], "numArgs": 3, "description": "

Block helper that always renders the inverse block unless a is less than or equal to b.

\n" } }, "date": { "date": { "args": [ "datetime", "format" ], "numArgs": 2, "example": "{{date now \"YYYY\"}}", "description": "

Format a date using moment.js data formatting.

\n" } } }