Created
September 6, 2013 11:01
-
-
Save mallim/6462384 to your computer and use it in GitHub Desktop.
How to load external template in marionette if not using requirejs? Get the code from http://johndavidmathis.wordpress.com/2012/09/13/preloading-backbone-marionette-templates-2/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Take note to change the source code for the correct path | |
// Example of using when there are multiple templates | |
var preloading = Backbone.Marionette.TemplateCache.preloadTemplates(['template1','template2'], this); | |
$.when(preloading).done(function() { | |
// Do something | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment