nl_tokens: Load a template from the DOM by default . Override this method to provide your own template retrieval For asynchronous loading with AMD / RequireJS consider using a template - loader plugin as described here : https : // github . com / marionettejs / backbone . marionette / wiki / Using - marionette - with - requirejs
pl_tokens: function ( templateId , <mask> ) { var $template = Backbone . $ ( templateId ) ; if ( ! $template . length ) { throw new Marionette . Error ( { name : 'NoTemplateError' , message : 'Could not find template: "' + templateId + '"' } ) ; } return $template . html ( ) ; }