lib/views.js
function (pattern, options) {
    var self = this;
    function find() {
      var isMatch = lazy.mm.matcher(pattern, options);
      for (var key in self) {
        var val = self[key];
        if (typeof val === 'object' && isMatch(key)) {
          return val;
        }
      }
    }
    var res = this.fragmentCache(pattern, find);
    res.__proto__ = this;
    return res;
  }
function (pattern, options) {
    var self = this;
    function find() {
      var isMatch = lazy.mm.matcher(pattern, options);
      for (var key in self) {
        var val = self[key];
        if (typeof val === 'object' && isMatch(key)) {
          return val;
        }
      }
    }
    var res = this.fragmentCache(pattern, find);
    res.__proto__ = this;
    return res;
  }
function ( pattern , options ) { var self = this ; function find ( ) { var isMatch = lazy . mm . matcher ( pattern , options ) ; for ( var key in self ) { var val = self [ key ] ; if ( typeof val === 'object' && isMatch ( key ) ) { return val ; } } } var res = this . fragmentCache ( pattern , find ) ; res . __proto__ = this ; return res ; }
Find a view by `key` or glob pattern.

@param  {String} `pattern` Key or glob pattern.
@param  {Object} `options` Options for [micromatch]
@return {Object} Matching view.
Find a view by key or glob pattern .