I have a huge application built with Backbone, Marionette, Require.js and this is an example of the view that I'm using:

```
define([
 'backbone',
 'text!templates/oauth.html'
], function (Backbone, Template) {
var OAuthView = Backbone.View.extend({

    template: _.template(Template),
    render: function() {

        var type = this.options.error;
        this.$el.html(this.template({ error: type }));

        return this;
    }

});

return OAuthView;

```

});

I would like to have in production (only in production because in development I like that all template files are separated) a single file html and use this
<https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.templatecache.md> to improve the performance.

Any hints/idea? How can you solve this problem?

Thanks.