jackjohnson44
asked on
jsrender can't register a template
I can use jsrender but I am getting an error when trying to register a template.
Here is my fiddle:
http://jsfiddle.net/jmillman/LRD6E/11/
This is my code:
var data = {
people: [{
name: 'One',
shirtColor: 'red',
price: 1.001
}, {
name: 'Two',
shirtColor: 'blue',
price: 2.0
}, {
name: 'Three',
shirtColor: 'green',
price: 3.3333333
}]
};
//this breaks
//$.templates({ tmpl: $("#template") });
//$("#output").html($.rend er.tmpl(da ta));
//this works
$("#output").html($("#temp late").ren der(data)) ;
Here is my fiddle:
http://jsfiddle.net/jmillman/LRD6E/11/
This is my code:
var data = {
people: [{
name: 'One',
shirtColor: 'red',
price: 1.001
}, {
name: 'Two',
shirtColor: 'blue',
price: 2.0
}, {
name: 'Three',
shirtColor: 'green',
price: 3.3333333
}]
};
//this breaks
//$.templates({ tmpl: $("#template") });
//$("#output").html($.rend
//this works
$("#output").html($("#temp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.