docs: function helperContext(view, locals, options) {
      var fn = this.options.helperContext;
      var context = {};
  
      if (!utils.isObject(view) || !view.isView) {
        locals = view;
        options = locals;
        view = this.view;
      }
  
      options = options || {};
      locals = locals || {};
      if (typeof fn === 'function') {
        return fn.call(this, view, locals, options);
      }
  
      // merge "view" front-matter with context
      context = utils.merge({}, context, this.view.locals, this.view.data);
  
      // merge in partial locals and front-matter
      if (view !== this.view) {
        context = utils.merge({}, context, view.locals, view.data);
      }
  
      // merge in helper locals and options.hash
      context = utils.merge({}, context, locals, options.hash);
      return context;
    }