lib/plugins/render.js
function findView(app, name) {
    var keys = app.viewTypes.renderable;
    var len = keys.length;
    var i = -1;

    var res = null;
    while (++i < len) {
      res = app.find(name, keys[i]);
      if (res) {
        break;
      }
    }
    return res;
  }
function findView(app, name) {
    var keys = app.viewTypes.renderable;
    var len = keys.length;
    var i = -1;

    var res = null;
    while (++i < len) {
      res = app.find(name, keys[i]);
      if (res) {
        break;
      }
    }
    return res;
  }
function findView ( app , name ) { var keys = app . viewTypes . renderable ; var len = keys . length ; var i = - 1 ; var res = null ; while ( ++ i < len ) { res = app . find ( name , keys [ i ] ) ; if ( res ) { break ; } } return res ; }
Iterates over `renderable` view collections
and returns the first view that matches the
given `view` name
Iterates over renderable view collections and returns the first view that matches the given view name