Availability: Registered in both the Node and browser builds.
Table of Contents
{{frame}}
Block helper for exposing private @ variables on the context. Creates a new data frame and extends it with hash arguments.
Params
context{Object}: Optional context data to include in the frameoptions{Object}: Handlebars provided options objectreturns{String}: Block content with the new frame context
Example
{{#frame site="mysite" value=42}}
{{@site}} - {{@value}}
{{/frame}}
<!-- results in: 'mysite - 42' -->
{{option}}
Return the given value of prop from this.options.
Params
prop{String}returns{any}
Example
<!-- context = {options: {a: {b: {c: 'ddd'}}}} -->
{{option "a.b.c"}}
<!-- results in: 'ddd' -->
{{noop}}
Block helper that renders the block without taking any arguments.
Params
options{Object}returns{String}
{{typeOf}}
Get the native type of the given value.
Params
value{any}returns{String}: Returns the type of value.
Example
{{typeOf 1}}
<!-- results in: 'number' -->
{{typeOf "1"}}
<!-- results in: 'string' -->
{{typeOf "foo"}}
<!-- results in: 'string' -->
{{withHash}}
Block helper that builds the context for the block from the options hash.
Params
options{Object}: Handlebars provided options object.
Example
{{#withHash a=1 b="hello"}}
{{a}} - {{b}}
{{/withHash}}
<!-- results in: '1 - hello' -->