'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = setVariable;

/**
 * Handlebars helper, to add variable inside template file
 */
function setVariable(varName, varValue, options) {
  if (varValue === 'true') {
    varValue = true;
  }
  if (varValue === 'false') {
    varValue = false;
  }
  options.data.root[varName] = varValue;
}