> a templating engine could easily avoid the actual with
> statement but provide same convenience
I'm afraid that's not possible. If you look at other micro-templating libraries that allow arbitrary JavaScript values, you'll find that there are two options. Either you can support naked variables, and you have to use "with" to bring them into scope ... or you have to prefix all of your variable accesses off a "data" object, which is less ergonomic, but faster. Underscore supports both.If you've got a patch that is able to do otherwise, I'd love to see it ;)