lib/dummyImgSrc.js
function dummyImgSrc (width, height, options) {
  if (!R.is(Number, width) || !R.is(Number, height)) {
    throw new Error('The "dummyImgSrc" helper must be passed two numeric dimensions.');
  }

  var result = encode(create(width, height, options.hash));

  return new Handlebars.SafeString(result);
}
function dummyImgSrc (width, height, options) {
  if (!R.is(Number, width) || !R.is(Number, height)) {
    throw new Error('The "dummyImgSrc" helper must be passed two numeric dimensions.');
  }

  var result = encode(create(width, height, options.hash));

  return new Handlebars.SafeString(result);
}
function dummyImgSrc ( width , height , options ) { if ( ! R . is ( Number , width ) || ! R . is ( Number , height ) ) { throw new Error ( 'The "dummyImgSrc" helper must be passed two numeric dimensions.' ) ; } var result = encode ( create ( width , height , options . hash ) ) ; return new Handlebars . SafeString ( result ) ; }
Returns an escaped data URI for a placeholder image that can be used as the
src attribute of an img element.

@since v0.3.0
@param {Number} width
@param {Number} height
@param {Object} options
@return {String}
@example
<img src="{{dummyImgSrc 150 50}}">

<img src="{{dummyImgSrc 150 50 text="foo"}}">

<img src="{{dummyImgSrc 150 50 bg="#000"}}">

<img src="{{dummyImgSrc 150 50 fg="pink"}}">
Returns an escaped data URI for a placeholder image that can be used as the src attribute of an img element .