code: function getLocals(options) {
      if (!options || !options.locals) {
        return self.options.locals;
      }
  
      return utils.extend({}, self.options.locals, options.locals);
    }
docs: Get combined locals context.
  @param  {?SwigOpts} [options] Swig options object.
  @return {object}         Locals context.
  @private