derickbailey/backbone.marionette — Issue #4: Docs Error
Author: redsquare
Created: 2012-01-11 11:13:00+00:00
State: open

Hi Derick,

Great work, much appreciated. You a couple of minor issues with the docs discussing the template manager.

To overwrite the default loadTemplate there is a casing issue

loadtemplate => loadTemplate

Also in the loadTemplate method you need to take a ref to this so adding the template into the templates array

e.g

Backbone.Marionette.TemplateManager.loadTemplate = function (templateId) {
var self = this;
$.get('templates/' + templateId + ".htm", function (template) {
// store the template in the cache.
self.templates[templateId] = template;
});
}