I'm migrating a project to use JSPM & SystemJS. In my app, I override a Backbone Marionette render method to use Mustache templates:
Marionette.Renderer.render = function (template, data) {
return Mustache.render(template, { Model: data }, partials);
}
This was simple in the old world - just have the above code after marionette js and mustache js have been added to the page. I can't see how to override this when I'm loading it as a module though.
import * as Marionette from "backbone.marionette";