"description":"<p>Map over the given object or array or objects and create an array of values from the given <code>prop</code>. Dot-notation may be used (as a string) to get nested properties.</p>\n"
"description":"<p>Sort an <code>array</code>. If an array of objects is passed, you may optionally pass a <code>key</code> to sort on as the second argument. You may alternatively pass a sorting function as the second argument.</p>\n"
},
"withAfter":{
@ -471,7 +471,7 @@
"precision"
],
"numArgs":2,
"example":"{{toPrecision \"1.1234\" 2}}",
"example":"{{toPrecision '1.1234' 2}}",
"description":"<p>Returns a string representing the <code>Number</code> object to the specified precision.</p>\n"
"description":"<p>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.</p>\n"
"description":"<p>Escape the given string by replacing characters with escape sequences. Useful for allowing the string to be used in a URL, etc.</p>\n"
"description":"<p>Strip protocol from a <code>url</code>. Useful for displaying media that may have an 'http' protocol on secure connections.</p>\n"
"description":"<p>Append the specified <code>suffix</code> to the given string.</p>\n"
},
"camelcase":{
@ -559,7 +559,7 @@
"string"
],
"numArgs":1,
"example":"{{camelcase \"foo bar baz\"}} -> fooBarBaz",
"example":"{{camelcase 'foo bar baz'}} -> fooBarBaz",
"description":"<p>camelCase the characters in the given <code>string</code>.</p>\n"
},
"capitalize":{
@ -567,7 +567,7 @@
"str"
],
"numArgs":1,
"example":"{{capitalize \"foo bar baz\"}} -> Foo bar baz",
"example":"{{capitalize 'foo bar baz'}} -> Foo bar baz",
"description":"<p>Capitalize the first word in a sentence.</p>\n"
},
"capitalizeAll":{
@ -575,7 +575,7 @@
"str"
],
"numArgs":1,
"example":"{{ capitalizeAll \"foo bar baz\"}} -> Foo Bar Baz",
"example":"{{ capitalizeAll 'foo bar baz'}} -> Foo Bar Baz",
"description":"<p>Capitalize all words in a string.</p>\n"
},
"center":{
@ -584,7 +584,7 @@
"spaces"
],
"numArgs":2,
"example":"{{ center \"test\" 1}} -> \" test \"",
"example":"{{ center 'test' 1}} -> ' test '",
"description":"<p>Center a string using non-breaking spaces</p>\n"
},
"chop":{
@ -592,7 +592,7 @@
"string"
],
"numArgs":1,
"example":"{{ chop \" ABC \"}} -> \"ABC\"",
"example":"{{ chop ' ABC '}} -> 'ABC'",
"description":"<p>Like trim, but removes both extraneous whitespace <strong>and non-word characters</strong> from the beginning and end of a string.</p>\n"
"description":"<p>Removes extraneous whitespace from the end of a string.</p>\n"
},
"truncate":{
@ -813,7 +813,7 @@
"suffix"
],
"numArgs":3,
"example":"{{truncate \"foo bar baz\" 7 }} -> foo bar",
"example":"{{truncate 'foo bar baz' 7 }} -> foo bar",
"description":"<p>Truncate a string to the specified <code>length</code>. Also see <a href=\"#ellipsis\">ellipsis</a>.</p>\n"
},
"truncateWords":{
@ -823,7 +823,7 @@
"suffix"
],
"numArgs":3,
"example":"{{truncateWords \"foo bar baz\" 1 }} -> foo",
"example":"{{truncateWords 'foo bar baz' 1 }} -> foo",
"description":"<p>Truncate a string to have the specified number of words. Also see <a href=\"#truncate\">truncate</a>.</p>\n"
},
"upcase":{
@ -831,7 +831,7 @@
"string"
],
"numArgs":1,
"example":"{{upcase \"aBcDef\"}} -> ABCDEF",
"example":"{{upcase 'aBcDef'}} -> ABCDEF",
"description":"<p>Uppercase all of the characters in the given string. Alias for <a href=\"#uppercase\">uppercase</a>.</p>\n"
},
"uppercase":{
@ -840,7 +840,7 @@
"options"
],
"numArgs":2,
"example":"{{uppercase \"aBcDef\"}} -> ABCDEF",
"example":"{{uppercase 'aBcDef'}} -> ABCDEF",
"description":"<p>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.</p>\n"
}
},
@ -863,7 +863,7 @@
"options"
],
"numArgs":4,
"example":"{{compare 10 \"<\" 5 }} -> true",
"example":"{{compare 10 '<' 5 }} -> true",
"description":"<p>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.</p>\n"
},
"contains":{
@ -874,7 +874,7 @@
"options"
],
"numArgs":4,
"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}}",
"description":"<p>Block helper that renders the block if <code>collection</code> has the given <code>value</code>, using strict equality (<code>===</code>) for comparison, otherwise the inverse block is rendered (if specified). If a <code>startIndex</code> is specified and is negative, it is used as the offset from the end of the collection.</p>\n"
"description":"<p>Returns the first value that is not undefined, otherwise the 'default' value is returned.</p>\n"
},
"eq":{
"args":[
@ -894,7 +894,7 @@
],
"numArgs":3,
"example":"{{#eq 3 3}} equal{{else}} not equal{{/eq}} -> equal",
"description":"<p>Block helper that renders a block if <code>a</code> is <strong>equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=""</code> hash argument for the second value.</p>\n"
"description":"<p>Block helper that renders a block if <code>a</code> is <strong>equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"
"description":"<p>Block helper that renders a block if <code>a</code> is <strong>greater than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=""</code> hash argument for the second value.</p>\n"
"description":"<p>Block helper that renders a block if <code>a</code> is <strong>greater than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"
},
"gte":{
"args":[
@ -914,7 +914,7 @@
],
"numArgs":3,
"example":"{{#gte 4 3}} greater than or equal{{else}} not greater than{{/gte}} -> greater than or equal",
"description":"<p>Block helper that renders a block if <code>a</code> is <strong>greater than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=""</code> hash argument for the second value.</p>\n"
"description":"<p>Block helper that renders a block if <code>a</code> is <strong>greater than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"
},
"has":{
"args":[
@ -923,7 +923,7 @@
"options"
],
"numArgs":3,
"example":"{{#has \"foobar\" \"foo\"}} has it{{else}} doesn't{{/has}} -> has it",
"example":"{{#has 'foobar' 'foo'}} has it{{else}} doesn't{{/has}} -> has it",
"description":"<p>Block helper that renders a block if <code>value</code> has <code>pattern</code>. If an inverse block is specified it will be rendered when falsy.</p>\n"
},
"isFalsey":{
@ -932,7 +932,7 @@
"options"
],
"numArgs":2,
"example":"{{isFalsey \"\" }} -> true",
"example":"{{isFalsey '' }} -> true",
"description":"<p>Returns true if the given <code>value</code> is falsey. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.</p>\n"
},
"isTruthy":{
@ -941,7 +941,7 @@
"options"
],
"numArgs":2,
"example":"{{isTruthy \"12\" }} -> true",
"example":"{{isTruthy '12' }} -> true",
"description":"<p>Returns true if the given <code>value</code> is truthy. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.</p>\n"
},
"ifEven":{
@ -999,7 +999,7 @@
],
"numArgs":2,
"example":"{{#lt 2 3}} less than {{else}} more than or equal {{/lt}} -> less than",
"description":"<p>Block helper that renders a block if <code>a</code> is <strong>less than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=""</code> hash argument for the second value.</p>\n"
"description":"<p>Block helper that renders a block if <code>a</code> is <strong>less than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"
},
"lte":{
"args":[
@ -1009,7 +1009,7 @@
],
"numArgs":3,
"example":"{{#lte 2 3}} less than or equal {{else}} more than {{/lte}} -> less than or equal",
"description":"<p>Block helper that renders a block if <code>a</code> is <strong>less than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=""</code> hash argument for the second value.</p>\n"
"description":"<p>Block helper that renders a block if <code>a</code> is <strong>less than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"
},
"neither":{
"args":[
@ -1219,4 +1219,4 @@
"description":"<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>\n"