SteveSanderson/knockout — pull request #465 by raffecat (2012-05-04 07:57:48+00:00)
Title: "foreach" and "with" can give a name to $data with "as: someName"

The main rationale for this approach is to increase the maintainability of heavily nested bindings that refer to parents, although I'd argue that explicitly named references are much easier to follow than $parent chains.

To borrow one of your examples:

```html

(managed by )

```

The automatic quoting I've added for "as:" might cause some controversy, and it is completely special-cased in the code - any thoughts on a better way to do this would be appreciated! (It also doesn't work inside an object literal foreach.)

The use-case for "with" is similar to "for"; somewhere in a context nested (deeply) in the "with" context, you want to access properties on the "with:" value.