Misc Helpers
Table of Contents
misc
Visit the: code | unit tests
{option}
Return the given value of prop
from this.options
.
Params
prop
Stringreturns
any
Example
{{option "a.b.c"}}
{noop}
Block helper that renders the block without taking any arguments.
Params
options
Objectreturns
String
{typeOf}
Get the native type of the given value
Params
value
anyreturns
String: Returns the type of value.
Example
{{typeOf 1}}
//=> 'number'
{{typeOf "1"}}
//=> 'string'
{{typeOf "foo"}}
//=> 'string'
{withHash}
Block helper that builds the context for the block from the options hash.
Params
options
Object: Handlebars provided options object.