How to use jQuery.tmpl() plugin passing in just a string[], not an object -
I have a simple template, I am using a plug in (), and I just have an array of stars I pass in and set up my template to display those stars. I am using these beautiful passes in objects but if you are not passing in an object and only passing in the string, then I will find the syntax Or are unable to understand.
Example:
var years = {2011, 2012, 2013} $ .tmpl ('blah', year) .appendTo ("# somediv"); $ .template ('blah', & lt; div & gt; (this is where I want a string value) Then template for me.
The correct syntax is actually {$ data} which will give value to the template item. / P> < P> Some serious discoveries were finally found that it was unable to bury doctors with any examples.
Comments
Post a Comment