addyosmani / backbone-fundamentals

:book: A creative-commons book on Backbone.js for beginners and advanced users alike
http://addyosmani.github.io/backbone-fundamentals/
9.25k stars 1.41k forks source link

backbone.js-jquerymobile-boilerplate-template: templatePartialPageID undefined #459

Open rwthesketh opened 11 years ago

rwthesketh commented 11 years ago

In the backbone.js-jquerymobile-boilerplate-template practical, {{> templatePartialPageID}} from the basic_page_simple.template is undefined in the packaged file. handlebars_packaged.js:104 stack2 = self.invokePartial(partials.templatePartialPageID, 'templatePartialPageID', depth0, helpers, partials, data); // NOTE: partials.templatePartialPageID is undef

Here's the stack:

Uncaught [object Object] handlebars.js:2271 Handlebars.VM.invokePartial handlebars.js:2271 (anonymous function) handlebars_packaged.js:104 (anonymous function) handlebars.js:2216 Backbone.View.extend.getTemplateResult BasicView.js:36 Backbone.View.extend.getBasicPageTemplateResult BasicView.js:48 Backbone.View.extend.render BasicView.js:56 _super backbonesuper.js:44 BasicView.extend.addAllTodos TodosView.js:66 Backbone.Events.trigger backbone.js:163 Backbone.(anonymous function).(anonymous function) .extend.reset backbone.js:746 options.success backbone.js:759 Backbone.sync localstorage.js:3 .extend.fetch backbone.js:763 BasicView.extend.initialize TodosView.js:20 Backbone.View backbone.js:1147 View View Backbone.Router.extend.index main.js:28 (anonymous function) backbone.js:900 bound lodash.js:1715 (anonymous function) backbone.js:1081 (anonymous function) .extend.loadUrl backbone.js:1079 _.extend.start backbone.js:1046 (anonymous function) main.js:43 fire jquery.js:974 self.fireWith jquery.js:1084 jQuery.extend.ready

addyosmani commented 11 years ago

Confirmed. Thanks for looking into this. I'll work on getting this fixed.