lib/views.js
function (key, val) {
    var opts = lazy.clone(this.options);
    var View = this.get('View');
    val.path = val.path || key;
    key = val.key = this.renameKey(key);
    this.setItem(key, (this[key] = new View(val, opts)));
    return this;
  }
function (key, val) {
    var opts = lazy.clone(this.options);
    var View = this.get('View');
    val.path = val.path || key;
    key = val.key = this.renameKey(key);
    this.setItem(key, (this[key] = new View(val, opts)));
    return this;
  }
function ( key , val ) { var opts = lazy . clone ( this . options ) ; var View = this . get ( 'View' ) ; val . path = val . path || key ; key = val . key = this . renameKey ( key ) ; this . setItem ( key , ( this [ key ] = new View ( val , opts ) ) ) ; return this ; }
Add a view to the current collection.

@param {String} `key`
@param {Object} `val` The view object
@param {Object} Returns the instance of `Views` for chaining.
@api public
Add a view to the current collection .