flatiron/director — pull request #80 by pksunkara (2012-02-19 17:52:21+00:00)
Title: Revert "Revert "[api] Bind extra objects to thisArg in http""

Sorry guys, for committing to the master. I didn't think it was a big change and I was in a hurry to finish it before my talk.

**Why we need this?**

As you know, I was writing plugins so that we combine all flatiron parts into a good interface. One of the problem I faced was, inorder for user to render a view from inside a function which is getting executed by the director, he had to do this

```js
this.res.html(app.views.render('view_file', data));
```

but using this

```js
this.render('view_file');
```

there are many other things similiar like this. I know this seems like a crude hack, but it is very very useful.