lib/lookup.js
function(plural) {
      if (lazy.isObject(plural)) return plural;
      if (!this.views.hasOwnProperty(plural)) {
        plural = this.inflections[plural];
      }
      if (!this.views.hasOwnProperty(plural)) {
        throw new Error('getViews cannot find collection' + plural);
      }
      return this.views[plural];
    }
function(plural) {
      if (lazy.isObject(plural)) return plural;
      if (!this.views.hasOwnProperty(plural)) {
        plural = this.inflections[plural];
      }
      if (!this.views.hasOwnProperty(plural)) {
        throw new Error('getViews cannot find collection' + plural);
      }
      return this.views[plural];
    }
function ( plural ) { if ( lazy . isObject ( plural ) ) return plural ; if ( ! this . views . hasOwnProperty ( plural ) ) { plural = this . inflections [ plural ] ; } if ( ! this . views . hasOwnProperty ( plural ) ) { throw new Error ( 'getViews cannot find collection' + plural ) ; } return this . views [ plural ] ; }
Get a view `collection` by its singular or plural name.

```js
var pages = app.getViews('pages');
//=> { pages: {'home.hbs': { ... }}

var posts = app.getViews('posts');
//=> { posts: {'2015-10-10.md': { ... }}
```

@param {String} `plural` The plural collection name, e.g. `pages`
@return {Object}
@api public
Get a view collection by its singular or plural name .