lib/swig.js
function getLocals(options) {
    if (!options || !options.locals) {
      return self.options.locals;
    }

    return utils.extend({}, self.options.locals, options.locals);
  }
function getLocals(options) {
    if (!options || !options.locals) {
      return self.options.locals;
    }

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