bebraw/libumd — pull request #10 by stephanebachelier (2014-12-31 14:43:25+00:00)
Title: Work on separator

- add a separator option
- indent dependency only if separator contains a linefeed

The idea is to be able to customize the output, in my case using umd template, from :

```javascript
if (typeof define === 'function' && define.amd) {
define(["marionette",
"underscore"], function (Marionette, _) {
return (root['State'] = factory(Marionette, _));
});
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like enviroments that support module.exports,
// like Node.
module.exports = factory(require("marionette"),
require("underscore"));
} else {
root['State'] = factory(Marionette,
_);
}
```

to :
```javascript
if (typeof define === 'function' && define.amd) {
define(["marionette",
"underscore"], function (Marionette, _) {
return (root['State'] = factory(Marionette, _));
});
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like enviroments that support module.exports,
// like Node.
module.exports = factory(require("marionette"), require("underscore"));
} else {
root['State'] = factory(Marionette, _);
}
```