lib/view.js
function(locals, cb) {
    if (typeof locals === 'function') {
      cb = locals;
      locals = {};
    }
    this.app.render(this, locals, cb);
    return this;
  }
function(locals, cb) {
    if (typeof locals === 'function') {
      cb = locals;
      locals = {};
    }
    this.app.render(this, locals, cb);
    return this;
  }
function ( locals , cb ) { if ( typeof locals === 'function' ) { cb = locals ; locals = { } ; } this . app . render ( this , locals , cb ) ; return this ; }
Asynchronously render a view.

```js
pages.get('home.md')
.render({title: 'Home'}, function(err, res) {
//=> do stuff with `res`
});
```

@param  {Object} `locals` Optionally pass locals to the engine.
@return {Object} `View` instance, for chaining.
@api public
Asynchronously render a view .