knockout/knockout — pull request #1278 by CraigCav (2014-01-17 22:20:59+00:00)
Title: Issue #1277 - 'as' parameter for 'with' binding

Using "as" to give an alias to "with" binding
---------------------------

I've come across a few cases where it might be useful to give the current context an alias, particularly in situations where the context switches several times and a descendant element needs to bind a property of one of its ancestors. @rod333 provided an example of this in issue #1277.

This PR should resolve #1277, supporting the following syntax:

```html

This is clean syntax
This is also clean
This is nice :)

```