-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
First I'm using the following;
- jquery-1.10.1.min.js
- jquery.mobile-1.3.1.min.js
- handlebars.runtime-v1.3.0.js
I have created a simple template called it "footer.handlebars" passed it into the CLI compiler with the following command;
handlebars footer.handlebars -f footer.template.js -m
I then include the footer.template.js after the handlebars itself and have a call to the template as follows;
var data = {
productType: 'APP',
appName : 'Test',
appVersion : '1.0',
currentYear: new Date().getFullYear()
};
var template = Handlebars.templates.footer(data);
$("#footerContainer").html(template);
This is bound to the document.ready command of jQuery and there is the containing div footerContainer for the template to populate into.
At run time I get the following error;
TypeError: Object # has no method 'call' at line 436 http://localhost/scripts/lib/handlebars.runtime-v1.3.0.js
First of all I'm not sure if I have done something wrong, so it could be human error. Or whether there is a known bug with the version of jQuery or handlebars etc...