Monthly Archives: July 2010

baseJS

i just gone through baseJS API documentation,i found very useful template method and properties.I think they are not in Jquery framework

Example from : http://paularmstrongdesigns.com/projects/basejs/docs/#newtemplate

var myTemplate = new Template(‘#{name} is #{age} years old.’);

var person1 = { name: ‘Jimmy’, age: ’22’ };
var person2 = { name: ‘Janey’, age: ’23’ };

Output
……………………………………………………………………………………
myTemplate.parse(person1); // returns → ‘Jimmy is 22 years old.’
myTemplate.parse(person2); // returns → ‘Janey is 23 years old.

Ref:http://www.greepit.com/2010/07/mobile-javascript-framework-basejs/?goback=.gde_1778847_member_24607596