My name is Nobuhiro Nakajima, Japanese programmer.
I'm afraid my expressions may be rude or hard to read, because I'm not so good at English. But please, please be patient! I will try hard to learn English!
opensocial-jquery templates is HTML DOM based JavaScript template library for OpenSocial Application. It is based on implementation of Apache Shindig and has compatibility with subset of OpenSocial Templates.
opensocial-jquery templates supports the following markup in OSML:
* ${Expr} variables and expressions into a element text and a attribute * Set of special variables: Top, Cur, Context.index, Context.Count and Msg * Set of special attributes: if, repeat, and var
This example is fetching and rendering a group of people using Ajax and Template.
opensocial-jquery templates is usable with the container which does not support OpenSocial v0.9. And different from OpenSocial Templates of the XML base, you can edit opensocial-jquery templates by an HTML authoring tool visually. It will make a programmer and a designer happy.
var url = '/people/@owner/@friends'; var data = { fields: 'profileUrl' }; $.getData(url, data, function(data) { $('#wrapper').render({ people: data }).show(); });