Misc Helpers

Table of Contents

misc

Visit the: code | unit tests

{option}

Return the given value of prop from this.options.

Params

  • prop String
  • returns any

Example


{{option "a.b.c"}}

{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}}
//=> '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.

Table of Contents