Javascript Template Parsing In Mobile Devices
I have implemented basic template parser for javascript. it simply replaces variables within template string. i.e {event.date} will be 7/4/2013 I am using script tag to sto
Solution 1:
Here is another way to do this:
$("<span/>",
{
"class":"date",
"id":"date_$event.id".replace(/\$event.id/,event.id),
"html":event.date
}
)
References
Post a Comment for "Javascript Template Parsing In Mobile Devices"