jonschlinkert/grunt-mustache — pull request #2 by doowb (2012-12-03 04:03:15+00:00)
Title: Data support for partials

Updated to allow creating .json files that store example data for the partials.
As long as the data.json file starts with the same name as the partial, it'll be read in and stored in the context as context.filename = {} ... ex: alert.mustache, alert.json will be stored in context.alert = {};

The partials can refer to the object in the context like... alert.message or however you set up the json file. I've included a sample of how to use multiple iterations of example data and scope it for use in 1 partial. See the partials.mustache file for an example of how that would work with alerts.