janl/mustache.js — pull request #378 by jrburke (2014-05-29 17:06:32+00:00)
Title: Fixes AMD registration, volo package.json entry

This change allows the AMD define signature to match what common AMD optimizers use to find define calls that need naming. Also updates the volo package.json entry so that the correct version of mustache can be fetched properly.

I got a report that the latest master was not optimizing correctly in the r.js optimizer, and traced the issue to the change in the define() signature.

The 'exports' dependency is [one of the special AMD dependencies](https://github.com/jrburke/requirejs/wiki/Differences-between-the-simplified-CommonJS-wrapper-and-standard-AMD-define#magic) that gives the same desired outcome as the CommonJS pathway, and it means a return in the factory is no longer needed.

While pulling mustache via volo, also noticed the package.json URL needed to be updated to be more generic.

If you prefer these to be two different pull requests, just let me know and I will redo it.