lib/plugins/render.js
function getView(app, view) {
    if (typeof view !== 'string') {
      return view;
    }
    if (app.isCollection) {
      view = app.getView(view);

    } else if (app.isList) {
      view = app.getItem(view);

    } else {
      view = findView(app, view);
    }
    return view;
  }
function getView(app, view) {
    if (typeof view !== 'string') {
      return view;
    }
    if (app.isCollection) {
      view = app.getView(view);

    } else if (app.isList) {
      view = app.getItem(view);

    } else {
      view = findView(app, view);
    }
    return view;
  }
function getView ( app , view ) { if ( typeof view !== 'string' ) { return view ; } if ( app . isCollection ) { view = app . getView ( view ) ; } else if ( app . isList ) { view = app . getItem ( view ) ; } else { view = findView ( app , view ) ; } return view ; }
Get a view from the specified collection, or list,
or iterate over view collections until the view
is found.
Get a view from the specified collection or list or iterate over view collections until the view is found .