code: function collectionLoader(collection, config) {
    collection._addView = collection.addView.bind(collection);
    var fn = collection.view;
  
    collection.define('view', function() {
      var view = fn.apply(this, arguments);
      utils.contents.sync(view);
      return view;
    });
  
    /**
     * Patches the `.addViews` method to support glob patterns.
     *
     * @param {Object|String} `key` View name or object.
     * @param {Object} `value` View options, when key is a string.
     * @return {Object}
     */
  
    collection.define('addView', function(key, value) {
      return this._addView.apply(this, arguments);
    });
  
    /**
     * Patches the `.addViews` method to support glob patterns.
     *
     * @param {Object|String} `key` View name or object.
     * @param {Object} `value` View options, when key is a string.
     * @return {Object}
     */
  
    collection.define('addViews', function(key, value) {
      this.load.apply(this, arguments);
      return this;
    });
  
    collection.define('loadView', function(filepath, options) {
      this.load.apply(this, arguments);
      return this;
    });
  
    collection.define('loadViews', function(patterns, options) {
      this.load.apply(this, arguments);
      return this;
    });
  
    collection.define('load', function() {
      return load('_addView', config).apply(this, arguments);
    });
  }
docs: Collection loaders