janl/mustache.js — pull request #380 by starsquare (2014-06-09 12:53:53+00:00)
Title: Section with `length` property

When a section is named `length`, it breaks if it has a String value, as the `lookup` function traverses the context, and erroneously finds a `length` property on the String.

The fix restricts `lookup` to only traverse objects (and arrays) for the requested property.