janl/mustache.js — pull request #145 by thegrandpoobah (2011-12-06 20:10:54+00:00)
Title: Make partials match the Mustache spec in terms of behaviour.

Implementation of partials in Mustache.js is different from the specification in two ways:

1) Undefined partials throw an exception in Mustache.js, but should be interpolated as the empty string according to the Mustache specification.
2) Partials act as implicit sections in some scenarios in Mustache.js whereas the specification says that the partial should act on the tip of the context stack.

This pull request fixes both these problems, but obviously will break any code that depends on this existing behaviour. I personally say onwards and upwards, but backwards compatibility may be important. If you want these changes, I will take the time to update the tests as well.