gruntjs/grunt-contrib-handlebars — pull request #13 by phawk (2013-01-17 12:43:07+00:00)
Title: Add AMD output support

Have added AMD support and the relevant test and updated the docs.

```js
handlebars: {
compile: {
options: {
amd: true
},
files: {
"path/to/result.js": "path/to/sources/*.hbs"
}
}
}
```

This will wrap your output an amd define function:

```js
define(function() {

this["JST"] = this["JST"] || {};

this["JST"]["test/fixtures/amd.html"] = function (Handlebars,depth0,helpers,partials,data) {
helpers = helpers || Handlebars.helpers;

return "

\n

Some title

\n

I've been compiled with amd support

\n

";};

return this["JST"];

});
```